error
ArgumentError(message)
¶
Bases: Exception
Error that gets raised if something is wrong with the arguments provided to a callable.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
Failure reason |
required |
Source code in api/src/anipy_api/error.py
BeautifulSoupLocationError(what, where)
¶
Bases: Exception
Error that gets raised in the Provider if there are errors with parsing HTML content.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
what
|
str
|
What could not be parsed |
required |
where
|
str
|
The url of the to be parsed content |
required |
Source code in api/src/anipy_api/error.py
DownloadError(message)
¶
Bases: Exception
Error that gets raised by Downloader.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
Failure reason |
required |
Source code in api/src/anipy_api/error.py
LangTypeNotAvailableError(identifier, provider, lang)
¶
Bases: Exception
Error that gets raised in the Provider if the specified language type is not available.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier
|
str
|
Identifier of the Anime |
required |
provider
|
str
|
Name of the Provider |
required |
lang
|
LanguageTypeEnum
|
The language that is not available |
required |
Source code in api/src/anipy_api/error.py
MyAnimeListError(url, status, mal_api_error=None)
¶
Bases: Exception
Error that gets raised by MyAnimeList, this may include authentication errors or other HTTP errors.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
str
|
Requested URL that caused the error |
required |
status
|
int
|
HTTP status code |
required |
mal_api_error
|
Optional[Dict]
|
MyAnimeList api error if returned |
None
|
Source code in api/src/anipy_api/error.py
PlayerError(message)
¶
Bases: Exception
Error that gets throws by certain functions in the player module.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
Failure reason |
required |
Source code in api/src/anipy_api/error.py
ProviderNotAvailable(provider)
¶
Bases: Exception
Error that gets raised if a requested provider is not available.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
provider
|
str
|
Provider in question |
required |