deimos.python.pyerrors

Mirror pyerrors.h

Members

Functions

PyErr_BadArgument
int PyErr_BadArgument()

_

PyErr_BadInternalall
void PyErr_BadInternalall()

_

PyErr_CheckSignals
int PyErr_CheckSignals()

_

PyErr_Clear
void PyErr_Clear()

_

PyErr_ExceptionMatches
int PyErr_ExceptionMatches(PyObject*)

_

PyErr_Fetch
void PyErr_Fetch(PyObject**, PyObject**, PyObject**)

_

PyErr_Format
PyObject* PyErr_Format(PyObject* exception, const(char)* format, ...)

_

PyErr_GivenExceptionMatches
int PyErr_GivenExceptionMatches(PyObject*, PyObject*)

_

PyErr_NewException
PyObject* PyErr_NewException(const(char)* name, PyObject* base, PyObject* dict)

_

PyErr_NewExceptionWithDoc
PyObject* PyErr_NewExceptionWithDoc(const(char)* name, const(char)* doc, PyObject* base, PyObject* dict)

Availability: >= 2.7

PyErr_NoMemory
PyObject* PyErr_NoMemory()

_

PyErr_NormalizeException
void PyErr_NormalizeException(PyObject**, PyObject**, PyObject**)

_

PyErr_Occurred
PyObject* PyErr_Occurred()

_

PyErr_ProgramText
PyObject* PyErr_ProgramText(const(char)* filename, int lineno)

_

PyErr_Restore
void PyErr_Restore(PyObject*, PyObject*, PyObject*)

_

PyErr_SetExcFromWindowsErr
PyObject* PyErr_SetExcFromWindowsErr(PyObject*, int)

Availability: Windows only

PyErr_SetExcFromWindowsErrWithFilename
PyObject* PyErr_SetExcFromWindowsErrWithFilename(PyObject* exc, int ierr, const(char)* filename)

Availability: Windows only

PyErr_SetExcFromWindowsErrWithFilenameObject
PyObject* PyErr_SetExcFromWindowsErrWithFilenameObject(PyObject*, int, PyObject*)

Availability: Windows only

PyErr_SetExcFromWindowsErrWithUnicodeFilename
PyObject* PyErr_SetExcFromWindowsErrWithUnicodeFilename(PyObject*, int, Py_UNICODE*)

Availability: Windows only

PyErr_SetFromErrno
PyObject* PyErr_SetFromErrno(PyObject*)

_

PyErr_SetFromErrnoWithFilename
PyObject* PyErr_SetFromErrnoWithFilename(PyObject* exc, char* filename)

_

PyErr_SetFromErrnoWithFilenameObject
PyObject* PyErr_SetFromErrnoWithFilenameObject(PyObject*, PyObject*)

_

PyErr_SetFromErrnoWithUnicodeFilename
PyObject* PyErr_SetFromErrnoWithUnicodeFilename(PyObject*, Py_UNICODE*)

_

PyErr_SetFromWindowsErr
PyObject* PyErr_SetFromWindowsErr(int)

Availability: Windows only

PyErr_SetFromWindowsErrWithFilename
PyObject* PyErr_SetFromWindowsErrWithFilename(int ierr, const(char)* filename)

Availability: Windows only

PyErr_SetFromWindowsErrWithFilenameObject
PyObject* PyErr_SetFromWindowsErrWithFilenameObject(int, const(char)*)

Availability: Windows only

PyErr_SetFromWindowsErrWithUnicodeFilename
PyObject* PyErr_SetFromWindowsErrWithUnicodeFilename(int, Py_UNICODE*)

Availability: Windows only

PyErr_SetInterrupt
void PyErr_SetInterrupt()

_

PyErr_SetNone
void PyErr_SetNone(PyObject*)

_

PyErr_SetObject
void PyErr_SetObject(PyObject*, PyObject*)

_

PyErr_SetString
void PyErr_SetString(PyObject* exception, const(char)* string)

_

PyErr_SyntaxLocation
void PyErr_SyntaxLocation(const(char)* filename, int lineno)

_

PyErr_SyntaxLocationEx
void PyErr_SyntaxLocationEx(const(char)* filename, int lineno, int col_offset)

Availability: 3.*

PyErr_Warn
int PyErr_Warn(PyObject*, char*)

Availability: 2.4

PyErr_WarnEx
int PyErr_WarnEx(PyObject*, char*, Py_ssize_t)

Availability: >= 2.5

PyErr_WarnExplicit
int PyErr_WarnExplicit(PyObject*, const(char)*, const(char)*, int, const(char)*, PyObject*)

_

PyErr_WriteUnraisable
void PyErr_WriteUnraisable(PyObject*)

_

PyExceptionClass_Check
int PyExceptionClass_Check(PyObject* x)

Availability: >= 2.5

PyExceptionClass_Name
int PyExceptionClass_Name(PyObject* x)

Availability: >= 2.5

PyExceptionInstance_Check
int PyExceptionInstance_Check(PyObject* x)

Availability: >= 2.5

PyExceptionInstance_Class
int PyExceptionInstance_Class(PyObject* x)

Availability: >= 2.5

PyException_GetCause
PyObject* PyException_GetCause(PyObject*)

Cause manipulation (PEP 3134)

PyException_GetContext
PyObject* PyException_GetContext(PyObject*)

Context manipulation (PEP 3134)

PyException_GetTraceback
PyObject* PyException_GetTraceback(PyObject*)

Traceback manipulation (PEP 3134)

PyException_SetCause
void PyException_SetCause(PyObject*, PyObject*)

Cause manipulation (PEP 3134)

PyException_SetContext
void PyException_SetContext(PyObject*, PyObject*)

Context manipulation (PEP 3134)

PyException_SetTraceback
int PyException_SetTraceback(PyObject*, PyObject*)

Traceback manipulation (PEP 3134)

PyOS_snprintf
int PyOS_snprintf(char* str, size_t size, const(char)* format, ...)

_

PyOS_vsnprintf
int PyOS_vsnprintf(char* str, size_t size, const(char)* format, va_list va)

_

PyUnicodeDecodeError_Create
PyObject* PyUnicodeDecodeError_Create(const(char)* encoding, const(char)* object, Py_ssize_t length, Py_ssize_t start, Py_ssize_t end, const(char)* reason)

create a UnicodeDecodeError object

PyUnicodeDecodeError_GetEncoding
PyObject* PyUnicodeDecodeError_GetEncoding(PyObject*)

get the encoding attribute

PyUnicodeDecodeError_GetEnd
int PyUnicodeDecodeError_GetEnd(PyObject*, Py_ssize_t*)

get the value of the end attribute (the int *may not be NULL) return 0 on success, -1 on failure

PyUnicodeDecodeError_GetObject
PyObject* PyUnicodeDecodeError_GetObject(PyObject*)

get the object attribute

PyUnicodeDecodeError_GetReason
PyObject* PyUnicodeDecodeError_GetReason(PyObject*)

get the value of the reason attribute

PyUnicodeDecodeError_GetStart
int PyUnicodeDecodeError_GetStart(PyObject*, Py_ssize_t*)

get the value of the start attribute (the int * may not be NULL) return 0 on success, -1 on failure

PyUnicodeDecodeError_SetEnd
int PyUnicodeDecodeError_SetEnd(PyObject*, Py_ssize_t)

assign a new value to the end attribute return 0 on success, -1 on failure

PyUnicodeDecodeError_SetReason
int PyUnicodeDecodeError_SetReason(PyObject* exc, const(char)* reason)

assign a new value to the reason attribute return 0 on success, -1 on failure

PyUnicodeDecodeError_SetStart
int PyUnicodeDecodeError_SetStart(PyObject*, Py_ssize_t)

assign a new value to the start attribute return 0 on success, -1 on failure

PyUnicodeEncodeError_Create
PyObject* PyUnicodeEncodeError_Create(const(char)* encoding, Py_UNICODE* object, Py_ssize_t length, Py_ssize_t start, Py_ssize_t end, const(char)* reason)

create a UnicodeEncodeError object

PyUnicodeEncodeError_GetEncoding
PyObject* PyUnicodeEncodeError_GetEncoding(PyObject*)

get the encoding attribute

PyUnicodeEncodeError_GetEnd
int PyUnicodeEncodeError_GetEnd(PyObject*, Py_ssize_t*)

get the value of the end attribute (the int *may not be NULL) return 0 on success, -1 on failure

PyUnicodeEncodeError_GetObject
PyObject* PyUnicodeEncodeError_GetObject(PyObject*)

get the object attribute

PyUnicodeEncodeError_GetReason
PyObject* PyUnicodeEncodeError_GetReason(PyObject*)

get the value of the reason attribute

PyUnicodeEncodeError_GetStart
int PyUnicodeEncodeError_GetStart(PyObject*, Py_ssize_t*)

get the value of the start attribute (the int * may not be NULL) return 0 on success, -1 on failure

PyUnicodeEncodeError_SetEnd
int PyUnicodeEncodeError_SetEnd(PyObject*, Py_ssize_t)

assign a new value to the end attribute return 0 on success, -1 on failure

PyUnicodeEncodeError_SetReason
int PyUnicodeEncodeError_SetReason(PyObject* exc, const(char)* reason)

assign a new value to the reason attribute return 0 on success, -1 on failure

PyUnicodeEncodeError_SetStart
int PyUnicodeEncodeError_SetStart(PyObject*, Py_ssize_t)

assign a new value to the start attribute return 0 on success, -1 on failure

PyUnicodeTranslateError_Create
PyObject* PyUnicodeTranslateError_Create(Py_UNICODE* object, Py_ssize_t length, Py_ssize_t start, Py_ssize_t end, const(char)* reason)

create a UnicodeTranslateError object

PyUnicodeTranslateError_GetEnd
int PyUnicodeTranslateError_GetEnd(PyObject*, Py_ssize_t*)

get the value of the end attribute (the int *may not be NULL) return 0 on success, -1 on failure

PyUnicodeTranslateError_GetObject
PyObject* PyUnicodeTranslateError_GetObject(PyObject*)

get the object attribute

PyUnicodeTranslateError_GetReason
PyObject* PyUnicodeTranslateError_GetReason(PyObject*)

get the value of the reason attribute

PyUnicodeTranslateError_GetStart
int PyUnicodeTranslateError_GetStart(PyObject*, Py_ssize_t*)

get the value of the start attribute (the int * may not be NULL) return 0 on success, -1 on failure

PyUnicodeTranslateError_SetEnd
int PyUnicodeTranslateError_SetEnd(PyObject*, Py_ssize_t)

assign a new value to the end attribute return 0 on success, -1 on failure

PyUnicodeTranslateError_SetReason
int PyUnicodeTranslateError_SetReason(PyObject* exc, const(char)* reason)

assign a new value to the reason attribute return 0 on success, -1 on failure

PyUnicodeTranslateError_SetStart
int PyUnicodeTranslateError_SetStart(PyObject*, Py_ssize_t)

assign a new value to the start attribute return 0 on success, -1 on failure

Py_FatalError
void Py_FatalError(const(char)* message)

Availability: 3.*

_PyErr_BadInternalCall
void _PyErr_BadInternalCall(const(char)* filename, int lineno)

_

Mixin templates

PyException_HEAD
mixin template PyException_HEAD()

_

PyException_HEAD
mixin template PyException_HEAD()

_

Structs

PyBaseExceptionObject
struct PyBaseExceptionObject

Availability: >= 2.5

PyEnvironmentErrorObject
struct PyEnvironmentErrorObject

subclass of PyBaseExceptionObject Availability: >= 2.5

PySyntaxErrorObject
struct PySyntaxErrorObject

subclass of PyBaseExceptionObject Availability: >= 2.5

PySystemExitObject
struct PySystemExitObject

subclass of PyBaseExceptionObject Availability: >= 2.5

PyUnicodeErrorObject
struct PyUnicodeErrorObject

subclass of PyBaseExceptionObject Availability: >= 2.5

PyWindowsErrorObject
struct PyWindowsErrorObject

subclass of PyBaseExceptionObject Availability: >= 2.5, Windows only

Meta