123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::InvalidBulkOperation

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error
Instance Chain:
self, Error
Inherits: Error
  • Object
Defined in: lib/mongo/error/invalid_bulk_operation.rb

Overview

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

Since:

  • 2.0.0

Class Method Summary

Constructor Details

.new(type, operation) ⇒ InvalidBulkOperation

Instantiate the new exception.

Examples:

Instantiate the exception.

Mongo::Error::InvalidBulkOperation.new(name)

Parameters:

  • type (String)

    The bulk operation type.

  • operation (Hash)

    The bulk operation.

Since:

  • 2.0.0

[ GitHub ]

  
# File 'lib/mongo/error/invalid_bulk_operation.rb', line 32

def initialize(type, operation)
  super("Invalid document format for bulk #{type} operation: #{operation}.")
end