URI.Error exception

View Source

An exception raised when an error occurs when a URI is invalid.

For example, see URI.new!/1.