StatusError
- exception StatusError(message, status)
Runtime error carrying the original TCIM status and numeric code.
This is a subclass of
RuntimeError, so legacy code usingexcept RuntimeErrorcontinues to catch runtime status failures. When the caught object is aStatusError, usestatusorcodeto get the original TCIM error. A plainRuntimeErrorhas no reliable status; convert it explicitly withfrom_runtime_error()when the status is known.
Methods
Convert a legacy |
|
Attach the original exception and return this error for chaining. |