Exception: Ruote::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruote/util/filter.rb

Overview

An error class for validation errors gathered during filtering.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#deviationsObject (readonly)

Returns the value of attribute deviations.



36
37
38
# File 'lib/ruote/util/filter.rb', line 36

def deviations
  @deviations
end