Class: module:models/Fault

module:models/Fault()

new module:models/Fault()

Constructs a new Fault. Document representing a fault.

Source:

Members

(inner) arguments :Object

These are optional arguments returned with fault

Type:
  • Object
Source:

(inner) message :String

The message of the fault.

Type:
  • String
Source:

(inner) type :String

The type of the fault.

Type:
  • String
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/Fault}

Constructs a Fault 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:models/Fault

Optional instance to populate.

Source:
Returns:

The populated Fault instance.

Type
module:models/Fault