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.HTTPError
Raised when YOURLS API returns HTTP error with response.
-
exception
yourls.exceptions.
YOURLSKeywordExistsError
(*args, **kwargs)¶ Bases:
yourls.exceptions.YOURLSAPIError
Raised when a chosen keyword already exists.
-
keyword
¶ Existing keyword.
-
-
exception
yourls.exceptions.
YOURLSNoLoopError
(*args, **kwargs)¶ Bases:
yourls.exceptions.YOURLSHTTPError
Raised when trying to shorten a shortened URL.
-
exception
yourls.exceptions.
YOURLSNoURLError
(*args, **kwargs)¶ Bases:
yourls.exceptions.YOURLSHTTPError
Raised when trying to shorten an empty URL.
-
exception
yourls.exceptions.
YOURLSURLExistsError
(*args, **kwargs)¶ Bases:
yourls.exceptions.YOURLSAPIError
Raised when a URL has already been shortened.
-
url
¶ Instance of
ShortenedURL
for existing URL.
-