Method: Mongo::Error::Notable#add_notes

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

#add_notes(*notes) ⇒ Object

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.

Allows multiple notes to be added in a single call, for convenience.

Since:

  • 2.11.0



63
64
65
# File 'lib/mongo/error/notable.rb', line 63

def add_notes(*notes)
  notes.each { |note| add_note(note) }
end