Class: Mongo::Error::InvalidURI
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Error
|
|
|
Instance Chain:
self,
Error
|
|
| Inherits: |
Error
|
| Defined in: | lib/mongo/error/invalid_uri.rb |
Overview
Exception that is raised when trying to parse a ::Mongo::URI that does not match
the specification.
Class Method Summary
-
.new(_uri, details, format = nil) ⇒ InvalidURI
constructor
Instantiate the new exception.
Constructor Details
.new(_uri, details, format = nil) ⇒ InvalidURI
Instantiate the new exception.
The message deliberately contains no part of the connection string. A string that failed to parse cannot be redacted reliably: the parser and the redactor can disagree about where the userinfo ends, so masking the input may still disclose a credential. The details supplied by the parser identify the component at fault by name instead. See the "Disclosure of Sensitive Values" section of the connection string specification.