ic-reactor
    Preparing search index...

    An error that happens in the Agent. This is the root of all errors and should be used everywhere in the Agent code (this package).

    To know if the error is certified, use the isCertified getter.

    Hierarchy

    Index

    Constructors

    Properties

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

    The cause of the error.

    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

    • 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