class Mongo::Error::InvalidBulkOperationType

Exception raised if an non-existent operation type is used.

@since 2.0.0

Public Class Methods

new(type) click to toggle source

Instantiate the new exception.

@example Instantiate the exception.

Mongo::Error::InvalidBulkOperationType.new(type)

@param [ String ] type The attempted operation type.

@since 2.0.0

Calls superclass method Mongo::Error::new
# File lib/mongo/error/invalid_bulk_operation_type.rb, line 31
def initialize(type)
  super("Invalid bulk operation type: #{type}.")
end