Skip to main content

NonJSONResponseError

Extends

  • Error

Constructors

Constructor

new NonJSONResponseError(contentType, response): NonJSONResponseError;

Parameters

ParameterType
contentTypestring | null
responsestring

Returns

NonJSONResponseError

Overrides

Error.constructor

Properties

PropertyTypeDefault valueOverridesInherited from
namestring'NonJSONResponseError'Error.name-
contentTypestring | nullundefined--
responsestringundefined--
cause?unknownundefined-Error.cause
messagestringundefined-Error.message
stack?stringundefined-Error.stack

Methods

isError()

static isError(error): error is Error;

Indicates whether the argument provided is a built-in Error instance or not.

Parameters

ParameterType
errorunknown

Returns

error is Error

Inherited from

Error.isError