Exception: DispatchRider::RecordInvalid
- Inherits:
-
DispatchRiderError
- Object
- StandardError
- DispatchRiderError
- DispatchRider::RecordInvalid
- Defined in:
- lib/dispatch-rider/errors.rb
Overview
This error is raised when validation fails on an object
Instance Method Summary collapse
-
#initialize(object, error_messages) ⇒ RecordInvalid
constructor
A new instance of RecordInvalid.
Constructor Details
#initialize(object, error_messages) ⇒ RecordInvalid
Returns a new instance of RecordInvalid.
30 31 32 |
# File 'lib/dispatch-rider/errors.rb', line 30 def initialize(object, ) super("#{object.class.name} is not valid because of the following errors : #{.to_sentence}") end |