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


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

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


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

def deviations
  @deviations
end