-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
324 additions
and
180 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 |
---|---|---|
@@ -1,26 +1,28 @@ | ||
class FileFormatError(Exception): | ||
"""Raised when the format of given file is unsupported or unrecognized. | ||
""" | ||
"""Raised when the format of given file is unsupported or unrecognized.""" | ||
|
||
pass | ||
|
||
|
||
class ParseError(Exception): | ||
"""Raised when the file cannot be parsed correctly. | ||
""" | ||
"""Raised when the file cannot be parsed correctly.""" | ||
|
||
pass | ||
|
||
|
||
class DecryptionError(Exception): | ||
"""Raised when the file cannot be decrypted. | ||
""" | ||
"""Raised when the file cannot be decrypted.""" | ||
|
||
pass | ||
|
||
|
||
class EncryptionError(Exception): | ||
"""Raised when the file cannot be encrypted. | ||
""" | ||
"""Raised when the file cannot be encrypted.""" | ||
|
||
pass | ||
|
||
|
||
class InvalidKeyError(DecryptionError): | ||
"""Raised when the given password or key is incorrect or cannot be verified. | ||
""" | ||
"""Raised when the given password or key is incorrect or cannot be verified.""" | ||
|
||
pass |
Oops, something went wrong.