Exception: Goliath::Rack::Validation::FailedCoerce

Inherits:
StandardError
  • Object
show all
Defined in:
lib/goliath/rack/validation/param.rb,
lib/goliath/rack/validation/coerce.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ FailedCoerce

Returns a new instance of FailedCoerce.



6
7
8
# File 'lib/goliath/rack/validation/param.rb', line 6

def initialize(error)
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



5
6
7
# File 'lib/goliath/rack/validation/param.rb', line 5

def error
  @error
end