Exception: Waw::Validation::Error
- Defined in:
- lib/waw/validation/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#failed ⇒ Object
The list of failures.
Instance Method Summary collapse
-
#initialize(failed, msg = "Validation has failed #{failed.inspect}") ⇒ Error
constructor
Creates a validation error instance.
Constructor Details
#initialize(failed, msg = "Validation has failed #{failed.inspect}") ⇒ Error
Creates a validation error instance
9 10 11 12 |
# File 'lib/waw/validation/errors.rb', line 9 def initialize(failed, msg = "Validation has failed #{failed.inspect}") super(msg) @failed = failed end |
Instance Attribute Details
#failed ⇒ Object
The list of failures
6 7 8 |
# File 'lib/waw/validation/errors.rb', line 6 def failed @failed end |