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 identifier string representing the specific error type encountered during task execution.
kindErrorKindThe classification of the error, indicating whether it originated from user code, system failure, or an unknown source.
worker`stringNone`

Constructor​

Signature​

def BaseRuntimeError(
code: str,
kind: ErrorKind,
root_cause_message: str,
worker: str | None = None
) - > null

Parameters​

NameTypeDescription
codestrThe error code associated with the runtime failure.
kindErrorKindThe category of the error (e.g., user, system, or unknown).
root_cause_messagestrThe detailed message describing the underlying cause of the error.
worker`strNone` = None

Signature​

def BaseRuntimeError(
code: string,
kind: ErrorKind,
root_cause_message: string,
worker: string | None
)

Parameters​

NameTypeDescription
codestringThe specific error code identifying the failure type
kindErrorKindThe category of error, such as user, system, or unknown
root_cause_messagestringThe detailed error message describing the underlying failure
worker`stringNone`