Exception: Her::Errors::ResourceInvalid

Inherits:
StandardError
  • Object
show all
Defined in:
lib/castle-her/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ ResourceInvalid

Returns a new instance of ResourceInvalid.



20
21
22
23
24
# File 'lib/castle-her/errors.rb', line 20

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.



19
20
21
# File 'lib/castle-her/errors.rb', line 19

def resource
  @resource
end