Exception: Fog::Rackspace::Errors::BadRequest
- Inherits:
-
ServiceError
- Object
- StandardError
- Errors::Error
- ServiceError
- Fog::Rackspace::Errors::BadRequest
- Defined in:
- lib/fog/rackspace.rb
Direct Known Subclasses
Compute::RackspaceV2::BadRequest, DNS::Rackspace::BadRequest, BlockStorage::BadRequest, Databases::BadRequest, LoadBalancers::BadRequest, Monitoring::BadRequest, Storage::Rackspace::BadRequest
Instance Attribute Summary collapse
-
#validation_errors ⇒ Object
readonly
TODO - Need to find a better way to print out these validation errors when they are thrown.
Attributes inherited from ServiceError
#response_data, #status_code, #transaction_id
Attributes inherited from Errors::Error
Class Method Summary collapse
Methods inherited from ServiceError
Instance Attribute Details
#validation_errors ⇒ Object (readonly)
TODO - Need to find a better way to print out these validation errors when they are thrown
70 71 72 |
# File 'lib/fog/rackspace.rb', line 70 def validation_errors @validation_errors end |
Class Method Details
.slurp(error) ⇒ Object
72 73 74 75 76 77 78 79 80 |
# File 'lib/fog/rackspace.rb', line 72 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.instance_variable_set(:@status_code, status_code) new_error.set_transaction_id(error, service) end |