Initialize an :class:`.InvalidURL` instance. :param url: The invalid URL. :param message: The message to display. Must contain a format identifier (``{}`` or ``{0}``) (default: ``"Invalid URL: {}"``).
(self, url: str, *, message: str = "Invalid URL: {}")
| 54 | """Indicate exceptions where an invalid URL is entered.""" |
| 55 | |
| 56 | def __init__(self, url: str, *, message: str = "Invalid URL: {}") -> None: |
| 57 | """Initialize an :class:`.InvalidURL` instance. |
| 58 | |
| 59 | :param url: The invalid URL. |
| 60 | :param message: The message to display. Must contain a format identifier (``{}`` |
| 61 | or ``{0}``) (default: ``"Invalid URL: {}"``). |
| 62 | |
| 63 | """ |
| 64 | super().__init__(message.format(url)) |
| 65 | |
| 66 | |
| 67 | class MissingRequiredAttributeException(ClientException): |