Hierarchy

  • Error
    • FuelError

Constructors

  • Parameters

    • code: ErrorCode
    • message: string
    • metadata: Record<string, unknown> = {}
    • rawError: unknown = null

    Returns FuelError

Properties

VERSIONS: Versions = versions
cause?: unknown
code: ErrorCode
message: string
metadata: Record<string, unknown>
name: string
rawError: unknown
stack?: string
CODES: typeof ErrorCode = ErrorCode
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Returns {
        VERSIONS: Versions;
        code: ErrorCode;
        message: string;
        metadata: Record<string, unknown>;
        name: string;
        rawError: unknown;
    }

    • VERSIONS: Versions
    • code: ErrorCode
    • message: string
    • metadata: Record<string, unknown>
    • name: string
    • rawError: unknown
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

  • Parameters

    • e: unknown

    Returns FuelError