-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
4 changed files
with
20 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
"""This module contains all the exceptions specific to Griffe.""" | ||
|
||
|
||
class ResolutionError(Exception): | ||
class GriffeError(Exception): | ||
"""The base exception for all Griffe errors.""" | ||
|
||
|
||
class NameResolutionError(GriffeError): | ||
"""Exception for names that cannot be resolved in a object scope.""" | ||
|
||
|
||
class UnhandledPthFileError(Exception): | ||
class UnhandledPthFileError(GriffeError): | ||
"""Exception for unhandled .path files, when searching modules.""" | ||
|
||
|
||
class LastNodeError(GriffeError): | ||
"""Exception raised when trying to access a next or previous node.""" | ||
|
||
|
||
class RootNodeError(GriffeError): | ||
"""Exception raised when trying to use siblings properties on a root node.""" |
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