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

  • code: string

    • Error code.
  • kind: ErrorKind

    • The kind of error.
  • worker: string | None

    • The worker that caused the error.

Constructors

  • Initializes a BaseRuntimeError instance.

Args: code (str): The error code. kind (ErrorKind): The kind of error. root_cause_message (str): The message describing the root cause of the error. worker (str | None, optional): The worker that caused the error. Defaults to None.

  • Parameters

    • code: string
      • The error code.
    • kind: ErrorKind
      • The kind of error.
    • root_cause_message: string
      • The message describing the root cause of the error.
    • worker: string | None
      • The worker that caused the error.
  • Initializes the BaseRuntimeError with error details.

  • Parameters

    • code: string
      • The error code.
    • kind: ErrorKind
      • The kind of error.
    • root_cause_message: string
      • The detailed message explaining the root cause of the error.
    • worker: string | None
      • The identifier of the worker that encountered the error, if applicable.