Home
last modified time | relevance | path

Searched refs:ErrorObject (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Mac/Modules/
DNav.c38 static PyObject *ErrorObject; variable
145 PyErr_SetString(ErrorObject, "DialogOption has non-string key"); in filldialogoptions()
208 PyErr_Format(ErrorObject, "Unknown DialogOption key: %s", keystr); in filldialogoptions()
244 PyErr_Mac(ErrorObject, err); in nav_NavTranslateFile()
265 PyErr_Mac(ErrorObject, err); in nav_NavCompleteSave()
336 PyErr_Mac(ErrorObject, err); in navrr_getattr()
345 PyErr_Mac(ErrorObject, err); in navrr_getattr()
350 PyErr_Mac(ErrorObject, err); in navrr_getattr()
367 PyErr_Mac(ErrorObject, err); in navrr_getattr()
376 PyErr_Mac(ErrorObject, err); in navrr_getattr()
[all …]
Dicgluemodule.c39 static PyObject *ErrorObject; variable
467 ErrorObject = PyMac_GetOSErrException(); in initicglue()
468 if (ErrorObject == NULL || in initicglue()
469 PyDict_SetItemString(d, "error", ErrorObject) != 0) in initicglue()
/external/python/cpython2/Modules/
Dxxmodule.c19 static PyObject *ErrorObject; variable
362 if (ErrorObject == NULL) { in initxx()
363 ErrorObject = PyErr_NewException("xx.error", NULL, NULL); in initxx()
364 if (ErrorObject == NULL) in initxx()
367 Py_INCREF(ErrorObject); in initxx()
368 PyModule_AddObject(m, "error", ErrorObject); in initxx()
Dalmodule.c15 static PyObject *ErrorObject; variable
53 PyErr_SetString(ErrorObject, buf); in ErrorHandler()
89 PyErr_SetString(ErrorObject, "unknown element type"); in param2python()
128 PyErr_SetString(ErrorObject, "unknown element type"); in python2elem()
149 PyErr_SetString(ErrorObject, "unknown element type"); in python2param()
200 PyErr_SetString(ErrorObject, "unknown element type"); in python2param()
728 PyErr_SetString(ErrorObject, "negative framecount"); in alp_ReadFrames()
745 PyErr_SetString(ErrorObject, "can't determine width"); in alp_ReadFrames()
757 PyErr_SetString(ErrorObject, "can't determine format"); in alp_ReadFrames()
764 PyErr_SetString(ErrorObject, "can't determine # of channels"); in alp_ReadFrames()
[all …]
Dpyexpat.c60 static PyObject *ErrorObject; variable
133 err = PyObject_CallFunction(ErrorObject, "s", buffer); in set_error()
138 PyErr_SetObject(ErrorObject, err); in set_error()
1861 if (ErrorObject == NULL) { in MODULE_INITFUNC()
1862 ErrorObject = PyErr_NewException("xml.parsers.expat.ExpatError", in MODULE_INITFUNC()
1864 if (ErrorObject == NULL) in MODULE_INITFUNC()
1867 Py_INCREF(ErrorObject); in MODULE_INITFUNC()
1868 PyModule_AddObject(m, "error", ErrorObject); in MODULE_INITFUNC()
1869 Py_INCREF(ErrorObject); in MODULE_INITFUNC()
1870 PyModule_AddObject(m, "ExpatError", ErrorObject); in MODULE_INITFUNC()
/external/python/cpython3/Modules/
Dxxmodule.c19 static PyObject *ErrorObject; variable
362 if (ErrorObject == NULL) { in xx_exec()
363 ErrorObject = PyErr_NewException("xx.error", NULL, NULL); in xx_exec()
364 if (ErrorObject == NULL) in xx_exec()
367 Py_INCREF(ErrorObject); in xx_exec()
368 PyModule_AddObject(m, "error", ErrorObject); in xx_exec()
Dxxlimited.c19 static PyObject *ErrorObject; variable
249 if (ErrorObject == NULL) { in xx_modexec()
250 ErrorObject = PyErr_NewException("xxlimited.error", NULL, NULL); in xx_modexec()
251 if (ErrorObject == NULL) in xx_modexec()
254 Py_INCREF(ErrorObject); in xx_modexec()
255 PyModule_AddObject(m, "error", ErrorObject); in xx_modexec()
Dpyexpat.c49 static PyObject *ErrorObject; variable
122 err = PyObject_CallFunctionObjArgs(ErrorObject, buffer, NULL); in set_error()
128 PyErr_SetObject(ErrorObject, err); in set_error()
1672 if (ErrorObject == NULL) { in MODULE_INITFUNC()
1673 ErrorObject = PyErr_NewException("xml.parsers.expat.ExpatError", in MODULE_INITFUNC()
1675 if (ErrorObject == NULL) in MODULE_INITFUNC()
1678 Py_INCREF(ErrorObject); in MODULE_INITFUNC()
1679 PyModule_AddObject(m, "error", ErrorObject); in MODULE_INITFUNC()
1680 Py_INCREF(ErrorObject); in MODULE_INITFUNC()
1681 PyModule_AddObject(m, "ExpatError", ErrorObject); in MODULE_INITFUNC()
/external/python/cpython2/Mac/Modules/snd/
D_Sndihooks.c49 static PyObject *ErrorObject; variable
503 ErrorObject = PyString_FromString("Sndihooks.error"); in init_Sndihooks()
504 PyDict_SetItemString(d, "error", ErrorObject); in init_Sndihooks()