-
Notifications
You must be signed in to change notification settings - Fork 43
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 #1162 from girder/rename-tiff-exceptions
Rename tiff exceptions to be better follow python standards
- Loading branch information
Showing
5 changed files
with
111 additions
and
110 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
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,37 @@ | ||
class TiffError(Exception): | ||
pass | ||
|
||
|
||
class InvalidOperationTiffError(TiffError): | ||
""" | ||
An exception caused by the user making an invalid request of a TIFF file. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class IOTiffError(TiffError): | ||
""" | ||
An exception caused by an internal failure, due to an invalid file or other | ||
error. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class IOOpenTiffError(IOTiffError): | ||
""" | ||
An exception caused by an internal failure where the file cannot be opened | ||
by the main library. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class ValidationTiffError(TiffError): | ||
""" | ||
An exception caused by the TIFF reader not being able to support a given | ||
file. | ||
""" | ||
|
||
pass |
Oops, something went wrong.