Exception: Valuedate::ValidationFailed
- Inherits:
-
StandardError
- Object
- StandardError
- Valuedate::ValidationFailed
- Defined in:
- lib/valuedate.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationFailed
constructor
A new instance of ValidationFailed.
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
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'lib/valuedate.rb', line 4 def errors @errors end |