class Mongo::Error::InvalidURI
Exception that is raised when trying to parse a URI that does not match the specification.
@since 2.0.0
Public Class Methods
new(uri, details)
click to toggle source
Instantiate the new exception.
@example Instantiate the exception.
Mongo::Error::InvalidURI.new(uri)
@since 2.0.0
Calls superclass method
# File lib/mongo/error/invalid_uri.rb, line 30 def initialize(uri, details) super("Bad URI: #{uri}\n" + "#{details}\n" + "MongoDB URI must be in the following format: #{Mongo::URI::FORMAT}\n" + "Please see the following URL for more information: #{Mongo::URI::HELP}\n") end