brian_object_exception function
(Shortest import: from brian2.core.base import brian_object_exception)
- brian2.core.base.brian_object_exception(message, brianobj, original_exception)[source]
Returns a
BrianObjectException
derived from the original exception.Creates a new class derived from the class of the original exception and
BrianObjectException
. This allows exception handling code to respond both to the original exception class andBrianObjectException
.See
BrianObjectException
for arguments and notes.