Class representing a transmuted error.

Hierarchy (view full)

Constructors

  • Constructs a new TransmutedError.

    Parameters

    • props: {
          cause?: string;
          context?: string;
          errorCode?: ErrorCode;
          message: string;
          module?: string;
          name: string;
          origin?: unknown;
          payload?: Record<string, unknown>;
          severity?: Severity;
      }

      The properties of the transmuted error.

      • Optionalcause?: string
      • Optionalcontext?: string
      • OptionalerrorCode?: ErrorCode
      • message: string
      • Optionalmodule?: string
      • name: string
      • Optionalorigin?: unknown
      • Optionalpayload?: Record<string, unknown>
      • Optionalseverity?: Severity

    Returns TransmutedError

Properties

cause?: string
context?: string
errorCode: ErrorCode
instanceUuid: string
module?: string
name: string
origin?: unknown
payload: Record<string, unknown>
severity: Severity

Accessors