pysolver_view.exceptions module#
Shared recognized model-domain failures for custom optimization and root solvers.
- exception pysolver_view.exceptions.DomainError(message, *, metadata=None)[source]#
Bases:
ExceptionIdentify an undefined physical model evaluation that may permit a retry.
Raise this only when the model recognizes a domain failure at the supplied point. Metadata records its cause for reporting; it does not supply substitute objective or constraint values. Recovery means trying another point, and can still fail if no valid trial step is found within the limits. Derivative probes are not retried.