| 90 | } |
| 91 | |
| 92 | PyObject* Exception::getPyObject() |
| 93 | { |
| 94 | Py::Dict edict; |
| 95 | edict.setItem("sclassname", Py::String(typeid(*this).name())); |
| 96 | edict.setItem("sErrMsg", Py::String(getMessage())); |
| 97 | edict.setItem("sfile", Py::String(getFile())); |
| 98 | edict.setItem("iline", Py::Long(getLine())); |
| 99 | edict.setItem("sfunction", Py::String(getFunction())); |
| 100 | edict.setItem("swhat", Py::String(what())); |
| 101 | edict.setItem("btranslatable", Py::Boolean(getTranslatable())); |
| 102 | edict.setItem("breported", Py::Boolean(hasBeenReported)); |
| 103 | return new_reference_to(edict); |
| 104 | } |
| 105 | |
| 106 | void Exception::setPyObject(PyObject* pydict) |
| 107 | { |
nothing calls this directly
no test coverage detected