EModelExec

exception tracdap.rt.exceptions.EModelExec

Bases: ETrac

An error occurred during the execution of model code

Models may throw this exception explicitly to indicate a failure. TRAC will also wrap unhandled errors that escape model code with EModelExec, such as unhandled failures in number format conversion or null handling. This may result in some technical errors being classed as EModelExec, e.g. Spark communication failures during model execution.

This exception is not used for TRAC errors, e.g. validation or storage errors, which have their own exceptions. Error types that extend BaseException instead of Exception will not be wrapped; this specifically includes SystemExit and KeyboardInterrupt errors.