Exception: MiniDefender::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mini_defender/validation_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, errors = {}) ⇒ ValidationError

Returns a new instance of ValidationError.



6
7
8
9
# File 'lib/mini_defender/validation_error.rb', line 6

def initialize(msg, errors = {})
  super(msg)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



4
5
6
# File 'lib/mini_defender/validation_error.rb', line 4

def errors
  @errors
end