class Mongo::Error::InvalidBulkOperation
Exception raised if an non-existent operation type is used.
@since 2.0.0
Public Class Methods
new(type, operation)
click to toggle source
Instantiate the new exception.
@example Instantiate the exception.
Mongo::Error::InvalidBulkOperation.new(name)
@param [ String ] type The bulk operation type. @param [ Hash ] operation The bulk operation.
@since 2.0.0
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/invalid_bulk_operation.rb, line 32 def initialize(type, operation) super("Invalid document format for bulk #{type} operation: #{operation}.") end