Class: Ant::Storage::Exceptions::ValidationErrors
- Inherits:
-
Exceptions::AntFail
- Object
- Exceptions::AntFail
- Ant::Storage::Exceptions::ValidationErrors
- Defined in:
- lib/ant/storage/datasource/exceptions.rb
Overview
Exception used when a value on a model violates the restrictions from the validators.
Instance Method Summary collapse
-
#initialize(data) ⇒ ValidationErrors
constructor
A new instance of ValidationErrors.
Constructor Details
#initialize(data) ⇒ ValidationErrors
Returns a new instance of ValidationErrors.
20 21 22 |
# File 'lib/ant/storage/datasource/exceptions.rb', line 20 def initialize(data) super('Error while validating object', 'ValidationErrors', data) end |