Exception: Fog::HP::Errors::BadRequest

Inherits:
ServiceError show all
Defined in:
lib/fog/hp.rb

Instance Attribute Summary collapse

Attributes inherited from ServiceError

#response_data

Attributes inherited from Errors::Error

#verbose

Class Method Summary collapse

Instance Attribute Details

#validation_errorsObject (readonly)

Returns the value of attribute validation_errors.



46
47
48
# File 'lib/fog/hp.rb', line 46

def validation_errors
  @validation_errors
end

Class Method Details

.slurp(error) ⇒ Object



48
49
50
51
52
53
54
# File 'lib/fog/hp.rb', line 48

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