Exception: Apipie::Params::Errors::Invalid
- Inherits:
-
ParamError
- Object
- StandardError
- ParamError
- Apipie::Params::Errors::Invalid
- Defined in:
- lib/apipie/params/errors.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from ParamError
Instance Method Summary collapse
-
#initialize(description, value, error) ⇒ Invalid
constructor
A new instance of Invalid.
- #to_s ⇒ Object
Constructor Details
#initialize(description, value, error) ⇒ Invalid
Returns a new instance of Invalid.
22 23 24 25 26 |
# File 'lib/apipie/params/errors.rb', line 22 def initialize(description, value, error) super(description) @value = value @error = error end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
20 21 22 |
# File 'lib/apipie/params/errors.rb', line 20 def error @error end |
#value ⇒ Object
Returns the value of attribute value.
20 21 22 |
# File 'lib/apipie/params/errors.rb', line 20 def value @value end |
Instance Method Details
#to_s ⇒ Object
28 29 30 |
# File 'lib/apipie/params/errors.rb', line 28 def to_s "Invalid parameter '#{description.name}' value #{@value.inspect}: #{@error}" end |