class Mongo::Error::UnsupportedCollation
Raised if a collation is specified for an operation but the server selected does not support collations.
@since 2.4.0
@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.
Constants
- DEFAULT_MESSAGE
-
The default error message describing that collations is not supported.
@return [ String ] A default message describing that collations is not supported by the server.
@since 2.4.0
- UNACKNOWLEDGED_WRITES_MESSAGE
-
The error message describing that collations cannot be used when write concern is unacknowledged.
@return [ String ] A message describing that collations cannot be used when write concern is unacknowledged.
@since 2.4.0
Public Class Methods
Source
# File lib/mongo/error/unsupported_collation.rb, line 51 def initialize(message = nil) super(message || DEFAULT_MESSAGE) end
Create the new exception.
@example Create the new exception.
Mongo::Error::UnsupportedCollation.new
@since 2.4.0
Calls superclass method