Skip to content

RuntimeExecutionError

RuntimeExecutionError

Bases: RuntimeError

The solver could not start or reported a detected execution failure.

run() raises this type for a launch OSError, nonzero exit code, or managed FEMORA_PROGRESS error record, including a managed error with exit code zero. The message contains a summary and, after a completed failed process, up to the last 20 captured output lines. A launch error can have an underlying operating-system exception in cause.

Example

With an exported model and resolved executable:

from femora import runtime
def run_model(script, executable):
    try:
        return runtime.run(script, executable=executable)
    except runtime.RuntimeExecutionError as error:
        print(str(error))
        raise
Note

The exception has no Jobs-style run attribute or attached completed process. Missing model files raise FileNotFoundError before launch. Warning text alone is not a failure signal, and a zero exit code without managed error records does not certify a correct or converged analysis. Files already written by the model are not rolled back.