Skip to main content

BaseRuntimeError

Base class for all Union runtime errors. These errors are raised when the underlying task execution fails, either because of a user error, system error or an unknown error.

Attributes​

AttributeTypeDescription
codestringA unique string identifier representing the specific error type encountered during task execution.
kindErrorKindCategorization of the error source, such as user, system, or unknown, used to determine retry behavior.
worker`stringNone`

Constructor​

Signature​

def BaseRuntimeError(self, code: str, kind: ErrorKind, root_cause_message: str, worker: str | None = None): ...

Parameters​

NameTypeDescription
codestringThe error code associated with the failure.
kindErrorKindThe category of the error (e.g., user, system, or unknown).
root_cause_messagestringThe detailed message describing the root cause of the error.
worker`stringNone` = None