# File lib/mongo/error/invalid_uri.rb, line 30 def initialize(uri, details, format = nil) message = "Bad URI: #{uri}\n" + "#{details}\n" message += "MongoDB URI must be in the following format: #{format}\n" if format message += "Please see the following URL for more information: #{Mongo::URI::HELP}\n" super(message) end