Ausgabe der neuen DB Einträge
This commit is contained in:
parent
bad48e1627
commit
cfbbb9ee3d
2399 changed files with 843193 additions and 43 deletions
28
venv/lib/python3.9/site-packages/stone/frontend/exception.py
Normal file
28
venv/lib/python3.9/site-packages/stone/frontend/exception.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import six
|
||||
|
||||
class InvalidSpec(Exception):
|
||||
"""Raise this to indicate there was an error in a specification."""
|
||||
|
||||
def __init__(self, msg, lineno, path=None):
|
||||
"""
|
||||
Args:
|
||||
msg: Error message intended for the spec writer to read.
|
||||
lineno: The line number the error occurred on.
|
||||
path: Path to the spec file with the error.
|
||||
"""
|
||||
super(InvalidSpec, self).__init__()
|
||||
assert isinstance(msg, six.text_type), type(msg)
|
||||
assert isinstance(lineno, (six.integer_types, type(None))), type(lineno)
|
||||
self.msg = msg
|
||||
self.lineno = lineno
|
||||
self.path = path
|
||||
|
||||
def __str__(self):
|
||||
return repr(self)
|
||||
|
||||
def __repr__(self):
|
||||
return 'InvalidSpec({!r}, {!r}, {!r})'.format(
|
||||
self.msg,
|
||||
self.lineno,
|
||||
self.path,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue