Package esys :: Package lsm :: Package vis :: Package core :: Module Exception
[hide private]
[frames] | no frames]

Module Exception

Defines helper function raiseNotImplemented for raising an exception in abstract methods of base classes.

Functions [hide private]
bool
raiseExceptionWhenNotImplemented(doRaise=None)
Return value of this function used in raiseNotImplemented.
 
raiseNotImplemented(msg="", logger=_defaultLogger)
Raises a NotImplementedError exception and logs the back-trace using the specified logger.
Variables [hide private]
  _defaultLogger = esys.lsm.Logging.getLogger("esys.lsm.vis.core")
  _doRaiseWhenNotImplemented = True
Function Details [hide private]

raiseExceptionWhenNotImplemented(doRaise=None)

 

Return value of this function used in raiseNotImplemented.

Parameters:
Returns: bool
True when raiseNotImplemented is to raise a NotImplementedError exception.

raiseNotImplemented(msg="", logger=_defaultLogger)

 

Raises a NotImplementedError exception and logs the back-trace using the specified logger. The exception is raised only if raiseExceptionWhenNotImplemented returns true, otherwise only the back-trace is logged and no exception is thrown.

Parameters:
  • msg (str) - Exception message string passed to NotImplementedError constructor.
  • logger (logging.Logger) - The Logger.error message is used to log the lines of a back-trace.