Class GaxiosError (6.3.0)

Inheritance

Error > GaxiosError

Package

gaxios

Constructors

(constructor)(message, config, response, error)

  constructor 
 ( 
 message 
 : 
  
 string 
 , 
  
 config 
 : 
  
 GaxiosOptions 
 , 
  
 response 
 ?: 
  
 GaxiosResponse<T> 
  
 | 
  
 undefined 
 , 
  
 error 
 ?: 
  
 Error 
  
 | 
  
 NodeJS 
 . 
 ErrnoException 
  
 | 
  
 undefined 
 ); 
 

Constructs a new instance of the GaxiosError class

Parameters
Name
Description
message
string
config
response
GaxiosResponse <T> | undefined
error
Error | __global.NodeJS.ErrnoException | undefined

Properties

[GAXIOS_ERROR_SYMBOL]

  [ 
 GAXIOS_ERROR_SYMBOL 
 ] 
 : 
  
 string 
 ; 
 

Support instanceof operator for GaxiosError across builds/duplicated files.

code

  code 
 ?: 
  
 string 
 ; 
 

An Error code. See

Example

'ECONNRESET'

config

  config 
 : 
  
 GaxiosOptions 
 ; 
 

error

  error 
 ?: 
  
 Error 
  
 | 
  
 NodeJS 
 . 
 ErrnoException 
  
 | 
  
 undefined 
 ; 
 

response

  response 
 ?: 
  
 GaxiosResponse<T> 
  
 | 
  
 undefined 
 ; 
 

status

  status 
 ?: 
  
 number 
 ; 
 

An HTTP Status code. See

Example

500

Methods

[Symbol.hasInstance](instance)

  static 
  
 [ 
 Symbol 
 . 
 hasInstance 
 ]( 
 instance 
 : 
  
 unknown 
 ) 
 : 
  
 boolean 
 ; 
 

Support instanceof operator for GaxiosError across builds/duplicated files.

Parameter
Name
Description
instance
unknown
Returns
Type
Description
boolean
Design a Mobile Site
View Site in Mobile | Classic
Share by: