Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ErrorResolver

Index

Constructors

constructor

Methods

errorFromCode

  • errorFromCode(code: number, captureBoundaryFn?: Function, fallbackToUnknown?: boolean): MaybeErrorWithCode
  • Attempts to resolve the provided error code to a known or custom error.

    Parameters

    • code: number
    • Optional captureBoundaryFn: Function

      is used to exclude everything after (including) that function from the stack trace if possible

    • fallbackToUnknown: boolean = true

      unless false a CusperUnknownError is returned when resolution fails

    Returns MaybeErrorWithCode

errorFromProgramLogs

throwError

Generated using TypeDoc