An error thrown when a platform-level HTTP error occurs. Information provided in this class may be useful for diagnostics purposes but will differ from platform to platform.

层级

  • Error
    • InternalHttpRequestError

属性

code: number

The platform-provided numeric error code for the error.

message: string

The platform-provided message for the error.

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

Optional override for formatting stack traces

stackTraceLimit: number

方法

  • Create .stack property on a target object

    参数

    • targetObject: object
    • 可选constructorOpt: Function

    返回 void