2025-12-14 16:53:08 +03:00

36 lines
691 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
Кастомные исключения приложения
"""
class LawyerAIException(Exception):
"""Базовое исключение приложения"""
pass
class NotFoundError(LawyerAIException):
"""Ресурс не найден"""
pass
class UnauthorizedError(LawyerAIException):
"""Пользователь не авторизован"""
pass
class ForbiddenError(LawyerAIException):
"""Доступ запрещен"""
pass
class ValidationError(LawyerAIException):
"""Ошибка валидации данных"""
pass
class DatabaseError(LawyerAIException):
"""Ошибка базы данных"""
pass