Skip to content

Errors

CommitFailed

Bases: ServiceException

Raise by the service when a commit fails.

Source code in sqlmodelservice/errors.py
class CommitFailed(ServiceException):
    """Raise by the service when a commit fails."""

    ...

MultipleResultsFound

Bases: ServiceException

Raised by the service when multiple results were found but at most one was expected.

Source code in sqlmodelservice/errors.py
class MultipleResultsFound(ServiceException):
    """Raised by the service when multiple results were found but at most one was expected."""

    ...

NotFound

Bases: ServiceException

Raise by the service when an item is not found.

Source code in sqlmodelservice/errors.py
class NotFound(ServiceException):
    """Raise by the service when an item is not found."""

    ...

ServiceException

Bases: Exception

Base exception raise by services.

Source code in sqlmodelservice/errors.py
1
2
3
4
class ServiceException(Exception):
    """Base exception raise by services."""

    ...