Class HttpError<T>

Type Parameters

  • T extends Error = Error

Hierarchy

  • Error
    • HttpError

Constructors

  • Type Parameters

    • T extends Error = Error

    Parameters

    • statusCode: number = 0
    • sourceErr: T

    Returns HttpError<T>

Properties

message: string
name: string
sourceErr: T
stack?: string
statusCode: number
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc