2021-02-02 14:33:23 +00:00
|
|
|
/// Enums for error codes
|
|
|
|
enum ErrorCode {
|
|
|
|
/// A generic error
|
2023-01-04 20:17:54 +00:00
|
|
|
generalError,
|
2021-02-02 14:33:23 +00:00
|
|
|
|
|
|
|
/// Errors related to connections
|
2023-01-04 20:17:54 +00:00
|
|
|
socketError,
|
|
|
|
socketTimeout,
|
2021-02-02 14:33:23 +00:00
|
|
|
|
|
|
|
/// A REST error (response code wasn't 200 or 204)
|
2023-01-04 20:17:54 +00:00
|
|
|
restError,
|
2021-04-05 20:06:54 +00:00
|
|
|
|
|
|
|
/// Custom errors
|
2023-01-04 20:17:54 +00:00
|
|
|
invalidApiKey
|
2021-02-02 14:33:23 +00:00
|
|
|
}
|