Expand description
Error types.
Structs§
- Cannot
BeABase - Returned when attempting to join more than the fragment on a cannot-be-a-base URL.
- Cant
BeEmpty - Returned when failing to set a value to empty.
- Cant
BeNone - Returned when failing to set a value to
None. - Cant
EndInA Number - Returned when attempting end a domain in a number.
- Cant
Have Host - Returned when attempting to set a URL that can’t have a host to have a host.
- Insert
NotFound - Returned when failing to find an insert.
- Invalid
Domain Host - Returned when attempting to parse an invalid
DomainHost. - Invalid
Domain Segment - Returned when attempting to parse an invalid
DomainSegment. - Invalid
Domain Segments - Returned when attempting to parse an invalid
DomainSegments. - Invalid
Empty Host - Returned when failing to parse an empty host.
- Invalid
File Host - Returned when attempting to parse an invalid
FileHost. - Invalid
Host - Returned when attempting to parse an invalid
Host. - Invalid
Ipv4 Host - Returned when failing to parse an IPv4 host.
- Invalid
Ipv6 Host - Returned when failing to parse an IPv6 host.
- Invalid
NonSpecial Host - Returned when attempting to parse an invalid
NonSpecialHost. - Invalid
Opaque Host - Returned when failing to parse an opaque host.
- Invalid
Port - Returned when attempting to parse an invalid port.
- Invalid
Punycode - Returned when attempting to parse invalid Punycode.
- Invalid
Scheme - Returned when failing to parse a scheme.
- Invalid
Special NotFile Host - Returned when attempting to parse an invalid
SpecialNotFileHost. - NoDomain
- Returned when failing to get a domain.
- NoHost
- Returned when failing to get a host.
- NonFqdn
Cant EndIn Empty - Returned when attempting to end a non-FQDN
DomainHostin an empty segment. - Path
IsOpaque - Returned when attempting to get a segmented path from an opaque path.
- Range
NotFound - Returned when failing to find a range.
- TooLong
- Returned when a value is too long.
Enums§
- Invalid
Join BetterUrl::join.- Invalid
Url - The enum of errors that can occur when trying to parse an invalid URL.
- SetDomain
Error - Returned when failing to set some/all of a domain.
- SetFragment
Error - The errors that can happen when setting a fragment.
- SetHost
Error - Returned when failing to set a host.
- SetHost
Port Error - Returned when failing to set the host + port.
- SetPassword
Error - The errors that can happen when setting a password.
- SetPath
Error - Returned when failing to set some/all of a path.
- SetPort
Error - The error
BetterUrl::set_portreturns when it fails. - SetQuery
Error - Returned when failing to set some/all of a path.
- SetScheme
Error - The errors that can happen when setting a scheme.
- SetUserinfo
Error - The errors that can happen when setting a userinfo.
- SetUsername
Error - The errors that can happen when setting a username.