Class: Fog::OpenStack::Errors::BadRequest
- Inherits:
-
ServiceError
- Object
- Errors::Error
- ServiceError
- Fog::OpenStack::Errors::BadRequest
- Defined in:
- lib/fog/openstack/errors.rb
Instance Attribute Summary collapse
-
#validation_errors ⇒ Object
readonly
Returns the value of attribute validation_errors.
Attributes inherited from ServiceError
Class Method Summary collapse
Instance Attribute Details
#validation_errors ⇒ Object (readonly)
Returns the value of attribute validation_errors.
28 29 30 |
# File 'lib/fog/openstack/errors.rb', line 28 def validation_errors @validation_errors end |
Class Method Details
.slurp(error) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/fog/openstack/errors.rb', line 30 def self.slurp(error) new_error = super(error) unless new_error.response_data.nil? or new_error.response_data['badRequest'].nil? new_error.instance_variable_set(:@validation_errors, new_error.response_data['badRequest']['validationErrors']) end new_error end |