Sha256: b5d789509dc550430dface2f0881d0f622eeaca709b6caf77f3b733b871e4dfb
Contents?: true
Size: 1018 Bytes
Versions: 9
Compression:
Stored size: 1018 Bytes
Contents
# frozen_string_literal: true module Mongoid module Errors # Raised when an attempt to create a collection failed. class CreateCollectionFailure < MongoidError # Instantiate the create collection error. # # @param [ String ] collection_name The name of the collection that # Mongoid failed to create. # @param [ Hash ] collection_options The options that were used when # tried to create the collection. # @param [ Mongo::Error::OperationFailure ] error The error raised when # tried to create the collection. # # @api private def initialize(collection_name, collection_options, error) super( compose_message( "create_collection_failure", { collection_name: collection_name, collection_options: collection_options, error: "#{error.class}: #{error.message}" } ) ) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems