Exception: Valuedate::ValidationFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/valuedate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ ValidationFailed

Returns a new instance of ValidationFailed.



6
7
8
9
# File 'lib/valuedate.rb', line 6

def initialize(errors)
  super("validation failed with #{errors.size} errors")
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



4
5
6
# File 'lib/valuedate.rb', line 4

def errors
  @errors
end