Exceptions
Missil custom exceptions.
Permission Error Exception
missil.PermissionErrorException
Bases: HTTPException
HTTP Exception you can raise to show on permission-related errors.
Initialize a PermissionErrorException.
PARAMETER | DESCRIPTION |
---|---|
status_code |
HTTP status code.
TYPE:
|
detail |
Exception description.
TYPE:
|
headers |
Response headers, by default {"WWW-Authenticate": "Bearer"}
TYPE:
|
Source code in missil/exceptions.py
Token Error Exception
missil.TokenErrorException
Bases: HTTPException
HTTP Exception you can raise to show on JWT token-related errors.
Initialize a TokenErrorException.
PARAMETER | DESCRIPTION |
---|---|
status_code |
HTTP status code.
TYPE:
|
detail |
Exception description.
TYPE:
|
headers |
Response headers, by default {"WWW-Authenticate": "Bearer"}
TYPE:
|