Method: Mongo::Error::Parser#labels

Defined in:
lib/mongo/error/parser.rb

#labelsArray<String> (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns The set of labels associated with the error.

Returns:

  • The set of labels associated with the error.

Since:

  • 2.7.0

API:

  • private



96
97
98
# File 'lib/mongo/error/parser.rb', line 96

def labels
  @labels
end