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 raise statement, code in the GeoEco package can use RaiseException() instead. This method will raise the exception, log it as an error (or warning, if SetLogErrorsAsWarnings() has been called with True), and also log a bunch of debugging information as debug messages.

Parameters:

exception (Exception) – The Python exception instance to raise.