Exception: Ruote::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Ruote::ValidationError
- Defined in:
- lib/ruote/util/filter.rb
Overview
An error class for validation errors gathered during filtering.
Instance Attribute Summary collapse
-
#deviations ⇒ Object
readonly
Returns the value of attribute deviations.
Instance Method Summary collapse
-
#initialize(deviations) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(deviations) ⇒ ValidationError
Returns a new instance of ValidationError.
38 39 40 41 |
# File 'lib/ruote/util/filter.rb', line 38 def initialize(deviations) @deviations = deviations super("validation failed with #{@deviations.size} deviation(s)") end |
Instance Attribute Details
#deviations ⇒ Object (readonly)
Returns the value of attribute deviations.
36 37 38 |
# File 'lib/ruote/util/filter.rb', line 36 def deviations @deviations end |