Exception: RSchema::Rails::InvalidParams
- Inherits:
-
StandardError
- Object
- StandardError
- RSchema::Rails::InvalidParams
- Defined in:
- lib/rschema/rails.rb
Overview
Raised when validate_params! fails
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ InvalidParams
constructor
A new instance of InvalidParams.
Constructor Details
#initialize(error) ⇒ InvalidParams
Returns a new instance of InvalidParams.
54 55 56 57 |
# File 'lib/rschema/rails.rb', line 54 def initialize(error) @error = error super('Parameters do not conform to schema') end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
52 53 54 |
# File 'lib/rschema/rails.rb', line 52 def error @error end |