Exception: Fog::HP::Errors::BadRequest
- Inherits:
-
ServiceError
- Object
- StandardError
- Errors::Error
- ServiceError
- Fog::HP::Errors::BadRequest
- Defined in:
- lib/rackspace-fog/hp.rb
Instance Attribute Summary collapse
-
#validation_errors ⇒ Object
readonly
Returns the value of attribute validation_errors.
Attributes inherited from ServiceError
Attributes inherited from Errors::Error
Class Method Summary collapse
Instance Attribute Details
#validation_errors ⇒ Object (readonly)
Returns the value of attribute validation_errors.
32 33 34 |
# File 'lib/rackspace-fog/hp.rb', line 32 def validation_errors @validation_errors end |
Class Method Details
.slurp(error) ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/rackspace-fog/hp.rb', line 34 def self.slurp(error) new_error = super(error) unless new_error.response_data.nil? new_error.instance_variable_set(:@validation_errors, new_error.response_data['validationErrors']) end new_error end |