Exceptions¶
Note
The contents of this module are placed here for organisational reasons.
They should be imported from yourls.
-
exception
yourls.exceptions.YOURLSHTTPError(*args, **kwargs)¶ Bases:
yourls.exceptions.YOURLSAPIError,requests.exceptions.HTTPErrorRaised when YOURLS API returns HTTP error with response.
-
exception
yourls.exceptions.YOURLSKeywordExistsError(*args, **kwargs)¶ Bases:
yourls.exceptions.YOURLSAPIErrorRaised when a chosen keyword already exists.
-
keyword¶ Existing keyword.
-
-
exception
yourls.exceptions.YOURLSNoLoopError(*args, **kwargs)¶ Bases:
yourls.exceptions.YOURLSHTTPErrorRaised when trying to shorten a shortened URL.
-
exception
yourls.exceptions.YOURLSNoURLError(*args, **kwargs)¶ Bases:
yourls.exceptions.YOURLSHTTPErrorRaised when trying to shorten an empty URL.
-
exception
yourls.exceptions.YOURLSURLExistsError(*args, **kwargs)¶ Bases:
yourls.exceptions.YOURLSAPIErrorRaised when a URL has already been shortened.
-
url¶ Instance of
ShortenedURLfor existing URL.
-
Inheritance diagram¶