123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::InvalidBulkOperationType

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_type.rb

Overview

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

Since:

  • 2.0.0

Class Method Summary

Constructor Details

.new(type) ⇒ InvalidBulkOperationType

Instantiate the new exception.

Examples:

Instantiate the exception.

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

Parameters:

  • type (String)

    The attempted operation type.

Since:

  • 2.0.0

[ GitHub ]

  
# File 'lib/mongo/error/invalid_bulk_operation_type.rb', line 31

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