| Class | Mongo::Error::UnsupportedCollation |
| In: |
lib/mongo/error/unsupported_collation.rb
|
| Parent: | Error |
Raised if a collation is specified for an operation but the server selected does not support collations.
@since 2.4.0
| DEFAULT_MESSAGE | = | "Collations is not a supported feature of the server handling this operation. " + "Operation results may be unexpected." |
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 | = | "A collation cannot be specified when using unacknowledged writes. " + "Either remove the collation option or use acknowledged writes (w >= 1)." |
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 |