21 lines
536 B
Python
21 lines
536 B
Python
|
|
class FFIError(Exception):
|
|
pass
|
|
|
|
class CDefError(Exception):
|
|
def __str__(self):
|
|
try:
|
|
line = 'line %d: ' % (self.args[1].coord.line,)
|
|
except (AttributeError, TypeError, IndexError):
|
|
line = ''
|
|
return '%s%s' % (line, self.args[0])
|
|
|
|
class VerificationError(Exception):
|
|
""" An error raised when verification fails
|
|
"""
|
|
|
|
class VerificationMissing(Exception):
|
|
""" An error raised when incomplete structures are passed into
|
|
cdef, but no verification has been done
|
|
"""
|