Source code for arxiv.submission.services.classic.exceptions

"""Exceptions raised by :mod:`arxiv.submission.services.classic`."""


[docs]class ClassicBaseException(RuntimeError): """Base for classic service exceptions."""
[docs]class NoSuchSubmission(ClassicBaseException): """A request was made for a submission that does not exist."""
[docs]class TransactionFailed(ClassicBaseException): """Raised when there was a problem committing changes to the database."""
[docs]class Unavailable(ClassicBaseException): """The classic data store is not available."""
[docs]class ConsistencyError(ClassicBaseException): """Attempted to persist stale or inconsistent state."""