classifier#
Classify exceptions raised by settings calls.
The order of checks is:
the product’s clean stop of an interruptible command (
is_interrupt()) is benign;a fatal error reported by the product is catastrophic;
typed product exceptions (inactive, read-only, disallowed value);
message heuristics for errors the server reports as plain text;
an otherwise unknown error is catastrophic only if the server no longer answers a health check.
Error text alone never makes an error catastrophic, so a message that merely mentions “fatal” cannot trigger a failover.
Classes:
|
Map an exception, and optionally its session, to a |
Functions:
|
Build a classification with the default severity of |
- class ansys.fluent.core.resilient.engine.classifier.ErrorClassifier(adapter)#
Bases:
objectMap an exception, and optionally its session, to a
Classification.Methods:
- __init__(adapter)#
- classify(err, session=None, *, interruptible=False)#
Classify
err.- Parameters:
- err
BaseException The exception to classify.
- session
optional The session the error came from. When given, the product’s fatal state and the server health are consulted.
- interruptiblebool,
optional Whether the failing call was an interruptible (solve) command.
- err
- Returns:
ClassificationThe classification of
err.
- ansys.fluent.core.resilient.engine.classifier.make_classification(category, message, details=None)#
Build a classification with the default severity of
category.