Class representing a mystic error, which is a transmuted error that is not yet handled.

Hierarchy (view full)

Constructors

  • Constructs a new MysticError.

    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 mystic error.

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

    Returns MysticError

Properties

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

Accessors

  • get severityDescription(): string
  • Get a description of the severity level.

    Returns string

    The severity description.