SnapCar.APIError
Extends SnapCar.Error
Represents an error received from the API.
Table of Contents
- Properties
Constructor
SnapCar.APIError
(
-
data
Parameters:
-
data
ObjectThe jQuery object.
Properties
code
Number
const
The type of error.
description
String
const
A human readable text describing the error. Not to be displayed to the user.
details
Object
const
Additional details such as a list of invalid parameters. Refer to the API reference for more information.
message
String
const
A key which defines more precisely the type of error.
serverResponse
String
const
The server response body.
type
String
const
The type of error.