Skip to content

Commit

Permalink
Add EDSWarning class
Browse files Browse the repository at this point in the history
Preparing for #316
  • Loading branch information
goodmami committed Dec 17, 2020
1 parent d3c9581 commit 7e66d6e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion delphin/eds/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
"""

from delphin.eds._exceptions import EDSError, EDSSyntaxError
from delphin.eds._exceptions import (
EDSError,
EDSSyntaxError,
EDSWarning,
)
from delphin.eds._eds import (
BOUND_VARIABLE_ROLE,
PREDICATE_MODIFIER_ROLE,
Expand All @@ -38,4 +42,5 @@
'make_ids_unique',
'EDSError',
'EDSSyntaxError',
'EDSWarning',
]
10 changes: 9 additions & 1 deletion delphin/eds/_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

from delphin.exceptions import PyDelphinException, PyDelphinSyntaxError
from delphin.exceptions import (
PyDelphinException,
PyDelphinSyntaxError,
PyDelphinWarning,
)


class EDSError(PyDelphinException):
Expand All @@ -8,3 +12,7 @@ class EDSError(PyDelphinException):

class EDSSyntaxError(PyDelphinSyntaxError):
"""Raised when an invalid EDS string is encountered."""


class EDSWarning(PyDelphinWarning):
"""Issued when an EDS may be incorrect or incomplete."""

0 comments on commit 7e66d6e

Please sign in to comment.