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.



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

#errorObject (readonly)

Returns the value of attribute error.



52
53
54
# File 'lib/rschema/rails.rb', line 52

def error
  @error
end