This repository has been archived by the owner on Oct 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from SamWhited/custom_rawkit_errors
Customize rawkit errors and don't use asserts
- Loading branch information
Showing
6 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,3 +57,5 @@ target/ | |
|
||
# Vim | ||
*.swp | ||
|
||
test-results/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
""":mod:`rawkit.errors` --- Errors thrown by rawkit | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
These errors are thrown by various rawkit functions and methods when things go | ||
wrong. They will only be raised by rawkit; for lower level errors raised by the | ||
underlying libraw bindings, see :class:`libraw.errors`. | ||
""" | ||
|
||
|
||
class InvalidFileType(ValueError): | ||
|
||
""" | ||
Raised when an invalid file type or file extension is passed to a rawkit | ||
method. If rawkit does not know what the filetype is, a | ||
:exc:`libraw.errors.FileUnsupported` may be raised instead. | ||
""" | ||
|
||
|
||
class NoFileSpecified(ValueError): | ||
|
||
""" | ||
Raised when the method or function excpects a `filename` argument, but no | ||
file name (or a value of `None`) was specified. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters