new UnknownConnectionError()
Returned when an error could not be parsed from a failed request. Most likely when there is not an internet connection.
- Source:
 
Example
See HabiticaApiError for a full example of how to use it when handling request errors.
api.get('/user').then(() => {
  // assuming there is no internet
  // connection, so user never
  // gets here
}).catch((err) => {
  err.message // 'An unknown error occurred'
  console.error(err.originalError)
})
    
    Members
(static) this.originalError
The original error from the failed request
- Source: