MCPcopy Index your code
hub / github.com/praw-dev/praw / __init__

Method __init__

praw/exceptions.py:56–64  ·  view source on GitHub ↗

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: {}")

Source from the content-addressed store, hash-verified

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
67class MissingRequiredAttributeException(ClientException):

Callers 7

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected