March 2003
Intermediate to advanced
656 pages
39h 30m
English
PyErr_SetFromErrnoWithFilename
PyObject* PyErr_SetFromErrnoWithFilename(PyObject*type,char*filename)
Like PyErr_SetFromErrno, but also provides string
filename as part of the
exception’s value. When
filename is NULL, works
like PyErr_SetFromErrno.
Your C code may want to deal with an exception and continue, as a
try/except statement would let
you do in Python code. The most commonly used C API functions related
to catching exceptions are the following.