class Mongoid::Errors::InvalidTime
This exception is raised when a bad value is attempted to be converted to a date or time.
Public Class Methods
Source
# File lib/mongoid/errors/invalid_time.rb, line 19 def initialize(value) super(compose_message("invalid_time", { value: value })) end
Create the new invalid date error.
@example Create the new invalid date error.
InvalidTime.new("this is not a time")
@param [ Object
] value The value that was attempted.
@since 2.3.1
Calls superclass method