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

Commit

Permalink
Better docstring for the error checker
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWhited committed Jul 1, 2015
1 parent c3a8ccf commit b61e65e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions libraw/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,19 @@ def check_call(exit_code, func, arguments):
:param exit_code: the exit code returned by a LibRaw function
:type exit_code: :class:`int`
:returns: Returns :param:`exit_code` or throws an error from
:class:`libraw.errors`
:rtype: :class:`type(exit_code)`
:raises: :exc:`~UnspecifiedError`
:exc:`~FileUnsupported`
:exc:`~FileUnsupported`
:exc:`~RequestForNonexistentImage`
:exc:`~OutOfOrderCall`
:exc:`~NoThumbnail`
:exc:`~UnsupportedThumbnail`
:exc:`~InputClosed`
:exc:`~InsufficientMemory`
:exc:`~DataError`
:exc:`~IOError`
:exc:`~CancelledByCallback`j
:exc:`~BadCrop`
"""

if func.restype is c_error and exit_code.value != 0:
Expand Down

0 comments on commit b61e65e

Please sign in to comment.