Exceptions

Module contents

This package defines custom exception classes used to handle domain-specific errors across the application.

exception back_chat.exceptions.BadRequest(detail: str = None, code: int = None)[source]

Bases: ErrorHTTPException

exception back_chat.exceptions.ErrorHTTPException(status_code=501, detail: str = 'General error', code: int | str = 'Unknown', description: str = 'General error')[source]

Bases: HTTPException

Submodules

Error response module

exception back_chat.exceptions.error_response.BadRequest(detail: str = None, code: int = None)[source]

Bases: ErrorHTTPException

exception back_chat.exceptions.error_response.ErrorHTTPException(status_code=501, detail: str = 'General error', code: int | str = 'Unknown', description: str = 'General error')[source]

Bases: HTTPException