Exception: RSchema::Rails::InvalidParams

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rschema/rails.rb

Overview

Raised when validate_params! fails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ InvalidParams

Returns a new instance of InvalidParams.


78
79
80
81
# File 'lib/rschema/rails.rb', line 78

def initialize(error)
  @error = error
  super('Parameters do not conform to schema')
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error


76
77
78
# File 'lib/rschema/rails.rb', line 76

def error
  @error
end