123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::UnsupportedCollation Deprecated

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

Overview

Deprecated.

RUBY-2260 In driver version 3.0, this error class will be replaced with UnsupportedOption. To handle this error, catch Mongo::Error::UnsupportedOption, which will prevent any breaking changes in your application when upgrading to version 3.0 of the driver.

Raised if a collation is specified for an operation but the server selected does not support collations.

Since:

  • 2.4.0

Constant Summary

  • UNACKNOWLEDGED_WRITES_MESSAGE =

    The error message describing that collations cannot be used when write concern is unacknowledged.

    Returns:

    • (String)

      A message describing that collations cannot be used when write concern is unacknowledged.

    Since:

    • 2.4.0

    # File 'lib/mongo/error/unsupported_collation.rb', line 34
    'A collation cannot be specified when using unacknowledged writes. ' +
    'Either remove the collation option or use acknowledged writes (w >= 1).'

UnsupportedOption - Inherited

ALLOW_DISK_USE_MESSAGE, COMMIT_QUORUM_MESSAGE, HINT_MESSAGE, UNACKNOWLEDGED_HINT_MESSAGE

Class Method Summary

UnsupportedOption - Inherited

.allow_disk_use_error

Raise an error about an unsupported allow_disk_use option.

.commit_quorum_error

Raise an error about an unsupported commit_quorum option.

.hint_error

Raise an error about an unsupported hint option.