pokelance.exceptions
⚓︎
AudioNotFound(message, route, status)
⚓︎
Bases: NotFound
Exception raised when an audio is not found.
Parameters: |
---|
Source code in pokelance/exceptions.py
BadRequest(message, route, status)
⚓︎
Bases: HTTPException
Exception raised when a bad request is made. [HTTP 400]
Forbidden(message, route, status)
⚓︎
Bases: HTTPException
Exception raised when forbidden. [HTTP 403]
HTTPException(message, route, status)
⚓︎
Bases: PokeLanceException
Base exception class for HTTP exceptions.
Parameters: |
---|
Attributes: |
---|
Source code in pokelance/exceptions.py
ImageNotFound(message, route, status)
⚓︎
Bases: NotFound
Exception raised when an image is not found.
Parameters: |
---|
Source code in pokelance/exceptions.py
MethodNotAllowed(message, route, status)
⚓︎
Bases: HTTPException
Exception raised when a method is not allowed. [HTTP 405]
NotFound(message, route, status)
⚓︎
Bases: HTTPException
Exception raised when a resource is not found. [HTTP 404]
PokeLanceException(message, route)
⚓︎
Bases: Exception
Base exception class for PokeLance.
Parameters: |
---|
Attributes: |
---|
Source code in pokelance/exceptions.py
ResourceNotFound(message, route, status)
⚓︎
Bases: NotFound
Exception raised when a resource is not found.
Parameters: |
---|
Source code in pokelance/exceptions.py
Unauthorized(message, route, status)
⚓︎
Bases: HTTPException
Exception raised when unauthorized. [HTTP 401]
UnknownError(message, route, status)
⚓︎
Bases: HTTPException
Exception raised when an unknown error occurs.
get_exception(status)
⚓︎
Gets an exception from the status code.
Parameters: |
|
---|
Returns: |
|
---|
Source code in pokelance/exceptions.py
Python | |
---|---|