Exceptions
Exception types raised by ropt.
ropt.exceptions
Exceptions raised within the ropt library.
Abort
Bases: Exception
Raised when a compute step is aborted prematurely.
This exception signals that an optimization or another compute step could not complete its intended task due to a specific condition (e.g., insufficient valid realizations, user request).
It must be initialized with an ExitCode describing
the reason for the abortion.
__init__
Initialize the Abort exception.
Stores the reason for the abortion, accessible via the exit_code
attribute.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exit_code
|
ExitCode
|
The exit code describing why the compute step was aborted. |
required |
ServerFailure
Bases: Exception
Raised when an evaluator server fails to execute a task.