Exception: Respect::ValidationError
- Inherits:
-
RespectError
- Object
- StandardError
- RespectError
- Respect::ValidationError
- Defined in:
- lib/respect.rb
Overview
Raised when the validation process has failed.
Instance Attribute Summary (collapse)
-
- (Object) context
readonly
An array of error messages to help you track where the error happened.
Instance Method Summary (collapse)
-
- (ValidationError) initialize(message)
constructor
A new instance of ValidationError.
Constructor Details
- (ValidationError) initialize(message)
A new instance of ValidationError
100 101 102 103 |
# File 'lib/respect.rb', line 100 def initialize() super @context = [ ] end |
Instance Attribute Details
- (Object) context (readonly)
An array of error messages to help you track where the error happened. Use it as a back-trace but in your validated object instead of your code.
108 109 110 |
# File 'lib/respect.rb', line 108 def context @context end |