Source code for litestar.exceptions.dto_exceptions

from __future__ import annotations

from litestar.exceptions import LitestarException

__all__ = ("DTOFactoryException", "InvalidAnnotationException")


[docs] class DTOFactoryException(LitestarException): """Base DTO exception type."""
[docs] class InvalidAnnotationException(DTOFactoryException): """Unexpected DTO type argument."""