new module:model/HttpError()
- Source:
Constructs a new HttpError.
An error occurred while processing a request. Source - https://www.baeldung.com/rest-api-error-handling-best-practices
Members
(inner) errorCode :String
- Source:
A granular, human and computer readable code indicating more deeply what error occurred.
Type:
- String
(inner) message :String
- Source:
A human-readable description of the error, meant for developers to store for their review.
Type:
- String
Methods
(static) constructFromObject(data, obj) → {module:model/HttpError}
- Source:
Constructs a HttpError from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data to obj if supplied or a new instance if not.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | The plain JavaScript object bearing properties of interest. |
obj |
module:model/HttpError | Optional instance to populate. |
Returns:
The populated HttpError instance.