LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Macros | |
#define | declareException(NAME, PYBASE, FULLNAME) |
#define declareException | ( | NAME, | |
PYBASE, | |||
FULLNAME | |||
) |
Swig macro to generate wrappers for a custom C++ exception
[in] | NAME | Name of the exception, not including the namespace (e.g. MyCustomException). |
[in] | PYBASE | Fully-qualified Python name of the exception's base class (e.g. lsst.pex.exceptions.NotFoundError). |
[in] | FULLNAME | Fully-qualified C++ name of the exception (e.g. lsst::mypackage::MyCustomException). |
Note that the Python module that contains the base class must have been imported in the Swig-generated Python code prior to the point where this macro is invoked. Usually this is added automatically by Swig due to an %import statement, but in some cases it may need to be added manually in a %pythoncode block.
See tests/testLib.i for a complete example.
Definition at line 25 of file 579fb9de1d3525ffab2ebf4d5511b739df1a9bfe.dox.