lavkach3
19 строк · 505.0 Байт
1from core.exceptions import CustomException
2
3
4class PasswordDoesNotMatchException(CustomException):
5code = 401
6error_code = "USER__PASSWORD_DOES_NOT_MATCH"
7message = "password does not match"
8
9
10class DuplicateEmailOrNicknameException(CustomException):
11code = 400
12error_code = "USER__DUPLICATE_EMAIL_OR_NICKNAME"
13message = "duplicate email or nickname"
14
15
16class UserNotFoundException(CustomException):
17code = 404
18error_code = "USER__NOT_FOUND"
19message = "user not found"
20