Methods
handleApiError(error) → {ApiError}
Calculate and generate the appropriate ApiError based on a received HTTP response error.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
* | The errored HTTP response. |
- Source:
Returns:
The `ApiError`-based error corresponding to the HTTP status code.
- Type
- ApiError
traverseJsonElement(errorMessage, messagesList)
Recursively traverses a JSON object or array and extracts error messages
as strings. Adds the extracted messages to the specified messagesList array.
Parameters:
| Name | Type | Description |
|---|---|---|
errorMessage |
object | array | string | The JSON object or array to traverse. |
messagesList |
array | The array to which extracted error messages will be added. |
- Source: