Exception: Mongoid::Errors::InvalidTime
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidTime
- Defined in:
- build/mongoid-7.3/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 Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
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.
19 20 21 |
# File 'build/mongoid-7.3/lib/mongoid/errors/invalid_time.rb', line 19 def initialize(value) super(("invalid_time", { value: value })) end |