new ErrorResponse()
- Version:
- 1.0
The ErrorResponse model module.
Members
code :Number
Service code (first 3 digits) and error code (last 4 digits)
Type:
- Number
message :String
Error message
Type:
- String
code :Number
Error code
Type:
- Number
message :String
Error message
Type:
- String
requestId :String
ID of the request which caused the error
Type:
- String
code :Number
KAS error code
Type:
- Number
message :String
KAS error message
Type:
- String
requestId :String
ID of the request caused the error
Type:
- String
code :Number
Type:
- Number
message :String
Type:
- String
requestId :String
Type:
- String
Methods
(static) constructFromObject(data, obj) → {ErrorResponse}
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 |
ErrorResponse | Optional instance to populate. |
Returns:
The populated ErrorResponse
instance.
- Type
- ErrorResponse
(static) constructFromObject(data, obj) → {ErrorResponse}
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 |
ErrorResponse | Optional instance to populate. |
Returns:
The populated ErrorResponse
instance.
- Type
- ErrorResponse
(static) constructFromObject(data, obj) → {ErrorResponse}
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 |
ErrorResponse | Optional instance to populate. |
Returns:
The populated ErrorResponse
instance.
- Type
- ErrorResponse
(static) constructFromObject(data, obj) → {ErrorResponse}
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 |
ErrorResponse | Optional instance to populate. |
Returns:
The populated ErrorResponse
instance.
- Type
- ErrorResponse