ic-reactor
    Preparing search index...

    Class UnknownError

    Hierarchy

    • ErrorKind
      • UnknownError
    Index

    Constructors

    Properties

    cause: { code: ErrorCode; kind: utils.agent.ErrorKindEnum }

    The cause of the error.

    name: string
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    The maximum number of stack frames to capture.

    message: string
    stack?: string

    Accessors

    • get code(): ErrorCode

      Returns ErrorCode

    • set code(code: ErrorCode): void

      Parameters

      • code: ErrorCode

      Returns void

    • get isCertified(): boolean

      Reads the isCertified property of the underlying error code.

      Returns boolean

      true if the error is certified, false otherwise.

    Methods

    • Type Parameters

      • C extends ErrorCode

      Parameters

      • code: new (...args: never[]) => C

      Returns boolean

    • Returns a string representation of an object.

      Returns string

    • Type Parameters

      • C extends ErrorCode
      • E extends ErrorKind

      Parameters

      • this: new (code: C) => E
      • code: C

      Returns E

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void

    • Check if a value is an instance of Error

      Parameters

      • value: unknown

        The value to check

      Returns value is Error

      True if the value is an instance of Error, false otherwise