Exception: Praxis::Exceptions::Validation
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Praxis::Exceptions::Validation
- Defined in:
- lib/praxis/exceptions/validation.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(message, errors: nil) ⇒ Validation
constructor
A new instance of Validation.
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(, errors: nil) super() @errors = errors end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
6 7 8 |
# File 'lib/praxis/exceptions/validation.rb', line 6 def errors @errors end |