Files
RekomenciBackend/src/template_project/application/user/errors.py
T
ivankirpichnikov 31d06fc0b4 add lints
2025-10-16 23:11:04 +03:00

18 lines
376 B
Python

from typing import override
from template_project.application.common.errors import ApplicationError, to_error
@to_error
class UserWithEmailAlreadyExistsError(ApplicationError):
email: str
@override
def __str__(self) -> str:
return f"User with the email={self.email!r} already exists"
@to_error
class UserUnauthorizedError(ApplicationError):
pass