codekingpro/portable-devtools
115k
1 2class FFIError(Exception):3 __module__ = 'cffi'4 5class CDefError(Exception):6 __module__ = 'cffi'7 def __str__(self):8 try:9 current_decl = self.args[1]10 filename = current_decl.coord.file11 linenum = current_decl.coord.line12 prefix = '%s:%d: ' % (filename, linenum)13 except (AttributeError, TypeError, IndexError):14 prefix = ''15 return '%s%s' % (prefix, self.args[0])16 17class VerificationError(Exception):18 """ An error raised when verification fails19 """20 __module__ = 'cffi'21 22class VerificationMissing(Exception):23 """ An error raised when incomplete structures are passed into24 cdef, but no verification has been done25 """26 __module__ = 'cffi'27 28class PkgConfigError(Exception):29 """ An error raised for missing modules in pkg-config30 """31 __module__ = 'cffi'32 