lavkach3
13 строк · 312.0 Байт
1from core.exceptions import CustomException2
3
4class DecodeTokenException(CustomException):5code = 4006error_code = "TOKEN__DECODE_ERROR"7message = "token decode error"8
9
10class ExpiredTokenException(CustomException):11code = 40012error_code = "TOKEN__EXPIRE_TOKEN"13message = "expired token"14