Exception: Zodra::ParamsError

Inherits:
Error
  • Object
show all
Defined in:
lib/zodra.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ ParamsError

Returns a new instance of ParamsError.



14
15
16
17
# File 'lib/zodra.rb', line 14

def initialize(errors)
  @errors = errors
  super('Params validation failed')
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



12
13
14
# File 'lib/zodra.rb', line 12

def errors
  @errors
end