class Mongo::Error::UnsupportedArrayFilters
Raised if the array filters option is specified for an operation but the server selected does not support array filters.
@since 2.5.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 array filters are not supported.
@return [ String ] A default message describing that array filters are not supported by the server.
@since 2.5.0
- UNACKNOWLEDGED_WRITES_MESSAGE
The error message describing that array filters cannot be used when write concern is unacknowledged.
@return [ String ] A message describing that array filters cannot be used when write concern is unacknowledged.
@since 2.5.0
Public Class Methods
new(message = nil)
click to toggle source
Create the new exception.
@example Create the new exception.
Mongo::Error::UnsupportedArrayFilters.new
@since 2.5.0
Calls superclass method
# File lib/mongo/error/unsupported_array_filters.rb, line 53 def initialize(message = nil) super(message || DEFAULT_MESSAGE) end