Errors v0.1.0
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.
Cases
| Name | Value | Description |
|---|---|---|
MissingScheme | 1 | The text has no scheme, so it is a relative reference that needs a base to resolve against. |
InvalidScheme | 2 | The scheme does not start with a letter or holds a character a scheme cannot. |
InvalidHost | 3 | The host is empty where one is required, holds a character a host cannot, or is a malformed IPv6 address. |
InvalidPort | 4 | The port is not a number from 0 to 65535. |
InvalidPercentEncoding | 5 | A % is not followed by two hexadecimal digits. |
OutOfMemory | 6 | The allocator could not supply the storage. |
InvalidText | 7 | Decoded bytes are not UTF-8 text. |