Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/cffi/error.py: 58%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
2class FFIError(Exception):
3 __module__ = 'cffi'
5class CDefError(Exception):
6 __module__ = 'cffi'
7 def __str__(self):
8 try:
9 current_decl = self.args[1]
10 filename = current_decl.coord.file
11 linenum = current_decl.coord.line
12 prefix = '%s:%d: ' % (filename, linenum)
13 except (AttributeError, TypeError, IndexError):
14 prefix = ''
15 return '%s%s' % (prefix, self.args[0])
17class VerificationError(Exception):
18 """ An error raised when verification fails
19 """
20 __module__ = 'cffi'
22class VerificationMissing(Exception):
23 """ An error raised when incomplete structures are passed into
24 cdef, but no verification has been done
25 """
26 __module__ = 'cffi'
28class PkgConfigError(Exception):
29 """ An error raised for missing modules in pkg-config
30 """
31 __module__ = 'cffi'