Exception: Praxis::Exceptions::Validation

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/praxis/exceptions/validation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, errors: nil) ⇒ Validation

Returns a new instance of Validation.



8
9
10
11
# File 'lib/praxis/exceptions/validation.rb', line 8

def initialize(message, errors: nil)
  super(message)
  @errors = errors
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



6
7
8
# File 'lib/praxis/exceptions/validation.rb', line 6

def errors
  @errors
end