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
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
new(message = nil)
click to toggle source
Create the new exception.
@example Create the new exception.
Mongo::Error::UnsupportedCollation.new
@since 2.4.0
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/unsupported_collation.rb, line 46 def initialize(message = nil) super(message || DEFAULT_MESSAGE) end