Exception: Mongoid::Errors::InvalidTime
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidTime
- Defined in:
- lib/mongoid/errors/invalid_time.rb
Overview
This exception is raised when a bad value is attempted to be converted to a date or time.
Constant Summary
Constants inherited from MongoidError
Instance Method Summary collapse
-
#initialize(value) ⇒ InvalidTime
constructor
Create the new invalid date error.
Methods inherited from MongoidError
Constructor Details
#initialize(value) ⇒ InvalidTime
Create the new invalid date error.
17 18 19 |
# File 'lib/mongoid/errors/invalid_time.rb', line 17 def initialize(value) super(("invalid_time", { value: value })) end |