Exception: Her::Errors::ResourceInvalid

Inherits:
Error
  • Object
show all
Defined in:
lib/her/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ ResourceInvalid

Returns a new instance of ResourceInvalid.



25
26
27
28
29
# File 'lib/her/errors.rb', line 25

def initialize(resource)
  @resource = resource
  errors = @resource.response_errors.join(", ")
  super("Remote validation failed: #{errors}")
end

Instance Attribute Details

#resourceObject (readonly)

Returns the value of attribute resource.



24
25
26
# File 'lib/her/errors.rb', line 24

def resource
  @resource
end