Exception: Fog::Rackspace::LoadBalancers::BadRequest
- Inherits:
-
ServiceError
- Object
- StandardError
- Errors::Error
- ServiceError
- Fog::Rackspace::LoadBalancers::BadRequest
- Defined in:
- lib/fog/rackspace/load_balancers.rb
Instance Attribute Summary collapse
-
#validation_errors ⇒ Object
readonly
TODO - Need to find a bette way to print out these validation errors when they are thrown.
Attributes inherited from ServiceError
Attributes inherited from Errors::Error
Class Method Summary collapse
Instance Attribute Details
#validation_errors ⇒ Object (readonly)
TODO - Need to find a bette way to print out these validation errors when they are thrown
27 28 29 |
# File 'lib/fog/rackspace/load_balancers.rb', line 27 def validation_errors @validation_errors end |
Class Method Details
.slurp(error) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/fog/rackspace/load_balancers.rb', line 29 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 |