An Err is synonymous with undefined. undefined means that the types are correct but the expression is not meaningful because of the values. An error that may be used as a return value. This MUST not be thrown. Err may be considered to be synonymous with undefined.

Hierarchy

  • Error
    • Err

Implements

  • Atom

Constructors

Properties

cause?: unknown
message: string
name: string
stack?: string
type: "error" = "error"
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Accessors

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void