-
Notifications
You must be signed in to change notification settings - Fork 13
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
1 parent
445a4e7
commit 65314fa
Showing
10 changed files
with
125 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
jschon.exc | ||
========== | ||
.. automodule:: jschon.exc |
This file was deleted.
Oops, something went wrong.
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,50 @@ | ||
class JschonError(Exception): | ||
"""Generic error class.""" | ||
|
||
|
||
class CatalogError(JschonError): | ||
"""An error originating in the :mod:`~jschon.catalog` module.""" | ||
|
||
|
||
class JSONError(JschonError): | ||
"""An error originating in the :class:`~jschon.json` module.""" | ||
|
||
|
||
class JSONPatchError(JschonError): | ||
"""An error originating in the :mod:`~jschon.jsonpatch` module.""" | ||
|
||
|
||
class JSONPointerError(JschonError): | ||
"""An error originating in the :mod:`~jschon.jsonpointer` module.""" | ||
|
||
|
||
class JSONPointerMalformedError(JSONPointerError): | ||
"""Raised for an invalid :class:`~jschon.jsonpointer.JSONPointer` | ||
constructor argument.""" | ||
|
||
|
||
class JSONPointerReferenceError(JSONPointerError): | ||
"""Raised when a :class:`~jschon.jsonpointer.JSONPointer` | ||
evaluates a non-existent location in a document.""" | ||
|
||
|
||
class RelativeJSONPointerMalformedError(JSONPointerError): | ||
"""Raised for an invalid :class:`~jschon.jsonpointer.RelativeJSONPointer` | ||
constructor argument.""" | ||
|
||
|
||
class RelativeJSONPointerReferenceError(JSONPointerError): | ||
"""Raised when a :class:`~jschon.jsonpointer.RelativeJSONPointer` | ||
evaluates a non-existent location in a document.""" | ||
|
||
|
||
class JSONSchemaError(JschonError): | ||
"""Raised when an error occurs during construction of a | ||
:class:`~jschon.jsonschema.JSONSchema` object. May be raised by | ||
:class:`~jschon.vocabulary.Keyword` initializers and reference | ||
resolution methods. | ||
""" | ||
|
||
|
||
class URIError(JschonError): | ||
"""An error originating in the :mod:`~jschon.uri` module.""" |
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,2 @@ | ||
class CatalogError(Exception): | ||
pass | ||
|
||
|
||
class JSONError(Exception): | ||
pass | ||
|
||
|
||
class JSONPatchError(Exception): | ||
pass | ||
|
||
|
||
class JSONPointerError(Exception): | ||
pass | ||
|
||
|
||
class JSONSchemaError(Exception): | ||
pass | ||
|
||
|
||
class RelativeJSONPointerError(Exception): | ||
pass | ||
|
||
|
||
class URIError(Exception): | ||
pass | ||
# noinspection PyUnresolvedReferences | ||
from .exc import * |
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