Sha256: f09f332c0c615c3312cafee99627df4e8d36c84857ff43e5a3d1fa29ba5afe40
Contents?: true
Size: 592 Bytes
Versions: 27
Compression:
Stored size: 592 Bytes
Contents
# frozen_string_literal: true # 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
27 entries across 27 versions & 2 rubygems