Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Merge 586217d into b088939
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWhited committed Aug 22, 2015
2 parents b088939 + 586217d commit e560c17
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions libraw/errors.py
Expand Up @@ -14,79 +14,87 @@ class c_error(c_int):
"""


class UnspecifiedError(Exception):
class LibRawError(Exception):

"""
A base exception class from which all other exceptions that originate in
LibRaw inherit.
"""


class UnspecifiedError(LibRawError):

"""
Something bad happened, but we don't know what.
"""


class FileUnsupported(Exception):
class FileUnsupported(LibRawError):

"""
The file is not a raw file or is from an unsupported camera.
"""


class RequestForNonexistentImage(Exception):
class RequestForNonexistentImage(LibRawError):

"""
The image file directory in the raw file which you are trying to access
does not contain an image.
"""


class OutOfOrderCall(Exception):
class OutOfOrderCall(LibRawError):

"""
A LibRaw function depends on another function being called first and was
invoked out of order.
"""


class NoThumbnail(Exception):
class NoThumbnail(LibRawError):

"""
The raw file does not contain a thumbnail.
"""


class UnsupportedThumbnail(Exception):
class UnsupportedThumbnail(LibRawError):

"""
The thumbnail format is not supported.
"""


class InputClosed(Exception):
class InputClosed(LibRawError):

"""
There is no input stream, or the input stream has been closed.
"""


class InsufficientMemory(Exception):
class InsufficientMemory(LibRawError):

"""
Memory allocation failed.
"""


class DataError(Exception):
class DataError(LibRawError):

"""
Data unpacking failed.
"""


class CancelledByCallback(Exception):
class CancelledByCallback(LibRawError):

"""
Image processing was canceled because the progress callback requested it.
"""


class BadCrop(Exception):
class BadCrop(LibRawError):

"""
The cropping coordinates specified are invalid (eg. the top left corner of
Expand Down

0 comments on commit e560c17

Please sign in to comment.