Sha256: 6b7a92fdde9e2c354b67344981ac47c66910f0901853d9d141dda169ee685a30
Contents?: true
Size: 561 Bytes
Versions: 105
Compression:
Stored size: 561 Bytes
Contents
# encoding: utf-8 module Mongoid module Errors # This exception is raised when a bad value is attempted to be converted to # a date or time. class InvalidTime < MongoidError # 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 def initialize(value) super(compose_message("invalid_time", { value: value })) end end end end
Version data entries
105 entries across 100 versions & 7 rubygems