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
| Attribute | Type | Description |
|---|---|---|
| code | string | A unique identifier string representing the specific error type encountered during task execution. |
| kind | ErrorKind | The classification of the error, indicating whether it originated from user code, system failure, or an unknown source. |
| worker | `string | None` |
Constructor
Signature
def BaseRuntimeError(
code: str,
kind: ErrorKind,
root_cause_message: str,
worker: str | None = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| code | str | The error code associated with the runtime failure. |
| kind | ErrorKind | The category of the error (e.g., user, system, or unknown). |
| root_cause_message | str | The detailed message describing the underlying cause of the error. |
| worker | `str | None` = None |
Signature
def BaseRuntimeError(
code: string,
kind: ErrorKind,
root_cause_message: string,
worker: string | None
)
Parameters
| Name | Type | Description |
|---|---|---|
| code | string | The specific error code identifying the failure type |
| kind | ErrorKind | The category of error, such as user, system, or unknown |
| root_cause_message | string | The detailed error message describing the underlying failure |
| worker | `string | None` |