[pypy-commit] pypy default: forgot to check in this file
arigo
pypy.commits at gmail.com
Tue Jan 24 09:54:10 EST 2017
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r89740:e80e3f733c30
Date: 2017-01-24 15:49 +0100
http://bitbucket.org/pypy/pypy/changeset/e80e3f733c30/
Log: forgot to check in this file
diff --git a/lib_pypy/cffi/error.py b/lib_pypy/cffi/error.py
new file mode 100644
--- /dev/null
+++ b/lib_pypy/cffi/error.py
@@ -0,0 +1,20 @@
+
+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
+ """
More information about the pypy-commit
mailing list