Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to wrap any request error

Type parameters

  • D = undefined

Hierarchy

Index

Constructors

Properties

cause?: Error

An error that causes the current error

details: Details<D>

Error details

internalMessage?: string

Internal storage for an error message

type: string

Error type

Abort: string = 'abort'

Default error type: a request was aborted

Engine: string = 'engine'

Default error type: a request was failed because of an internal request engine' error

InvalidStatus: string = 'invalidStatus'

Default error type: a server has responded with a non-ok status

Offline: string = 'offline'

Default error type: a request was failed because there is no connection to a network

Timeout: string = 'timeout'

Default error type: a request was aborted because of a timeout

Methods

  • format(): string