LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Macros
/tmp/lsstDoxygen1EqtGd/defac42e96647719d72828b49ae4f4f348408025.dox File Reference

Macros

#define declareException(NAME, PYBASE, FULLNAME)
 

Macro Definition Documentation

#define declareException (   NAME,
  PYBASE,
  FULLNAME 
)

Swig macro to generate wrappers for a custom C++ exception

Note
This is actually a Swig macro "%declareException" (note the "%") defined in exceptionsLib.i, but we've lied to Doxygen about its name and location to produce this documentation.
Parameters
[in]NAMEName of the exception, not including the namespace (e.g. MyCustomException).
[in]PYBASEFully-qualified Python name of the exception's base class (e.g. lsst.pex.exceptions.NotFoundError).
[in]FULLNAMEFully-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 defac42e96647719d72828b49ae4f4f348408025.dox.