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

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 Mongo::Error::new
# File lib/mongo/error/unsupported_array_filters.rb, line 46
def initialize(message = nil)
  super(message || DEFAULT_MESSAGE)
end