Class SkyWayError<PayloadType>

Type Parameters

  • PayloadType extends Record<string, any> = Record<string, any>

Hierarchy

  • Error
    • SkyWayError

Properties

error?: Error
info: ErrorInfo
message: string
name: string
path?: string
payload?: PayloadType
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Returns {
        error: undefined | Error;
        id: string;
        info: ErrorInfo;
        path: undefined | string;
        payload: undefined | PayloadType;
        stack: undefined | string;
    }

    • error: undefined | Error
    • id: string
    • info: ErrorInfo
    • path: undefined | string
    • payload: undefined | PayloadType
    • stack: undefined | string
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void