Errors v0.1.0

Source
Why a URL could not be parsed.

UrlError

pub enum UrlError: uint8 {
    MissingScheme = 1,
    InvalidScheme = 2,
    InvalidHost = 3,
    InvalidPort = 4,
    InvalidPercentEncoding = 5,
    OutOfMemory = 6,
    InvalidText = 7
}

Why text could not be read or resolved as a URL. Copy.

Source

Cases

NameValueDescription
MissingScheme1The text has no scheme, so it is a relative reference that needs a base to resolve against.
InvalidScheme2The scheme does not start with a letter or holds a character a scheme cannot.
InvalidHost3The host is empty where one is required, holds a character a host cannot, or is a malformed IPv6 address.
InvalidPort4The port is not a number from 0 to 65535.
InvalidPercentEncoding5A % is not followed by two hexadecimal digits.
OutOfMemory6The allocator could not supply the storage.
InvalidText7Decoded bytes are not UTF-8 text.