GeoEco.Logging.Logger.RaiseException
- classmethod Logger.RaiseException(exception)
Raises a Python exception and logs it as an error message and additional information as debug messages.
Rather than raising excpetions with the Python
raisestatement, code in the GeoEco package can useRaiseException()instead. This method will raise the exception, log it as an error (or warning, ifSetLogErrorsAsWarnings()has been called withTrue), and also log a bunch of debugging information as debug messages.- Parameters:
exception (
Exception) – The Python exception instance to raise.