module:model/ErrorResponse

module:model/ErrorResponse

new module:model/ErrorResponse()

Source:

Constructs a new ErrorResponse.
Returns error with a status message

Members

(inner) errorCode :module:model/ErrorCodes

Source:
Type:
  • module:model/ErrorCodes

(inner) message :String

Source:
Type:
  • String

Methods

(static) constructFromObject(data, obj) → {module:model/ErrorResponse}

Source:

Constructs a ErrorResponse 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/ErrorResponse

Optional instance to populate.

Returns:

The populated ErrorResponse instance.

Type
module:model/ErrorResponse