Raised when get_host or similar fails to parse the URL input.
| 194 | |
| 195 | |
| 196 | class LocationParseError(LocationValueError): |
| 197 | """Raised when get_host or similar fails to parse the URL input.""" |
| 198 | |
| 199 | def __init__(self, location: str) -> None: |
| 200 | message = f"Failed to parse: {location}" |
| 201 | super().__init__(message) |
| 202 | |
| 203 | self.location = location |
| 204 | |
| 205 | |
| 206 | class URLSchemeUnknown(LocationValueError): |
no outgoing calls
no test coverage detected