123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::InvalidServerPreference

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

Overview

Raised when an invalid server preference is provided.

Since:

  • 2.0.0

Constant Summary

Class Method Summary

Constructor Details

.new(message) ⇒ InvalidServerPreference

Instantiate the new exception.

Examples:

Instantiate the exception.

Mongo::Error::InvalidServerPreference.new

Parameters:

  • message (String)

    The error message.

Since:

  • 2.0.0

[ GitHub ]

  
# File 'lib/mongo/error/invalid_server_preference.rb', line 57

def initialize(message)
  super
end