Source code for swh.provenance.exc

# Copyright (C) 2024  The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information


[docs] class ProvenanceDBError(Exception): """Specific provenance db error (connection, erroneous queries, etc...)""" def __str__(self): return "An unexpected error occurred in the backend: %s" % (self.args,)
[docs] class ProvenanceAPIError(Exception): """Specific internal provenance api (mainly connection)""" def __str__(self): args = self.args return "An unexpected error occurred in the api backend: %s" % (args,)
[docs] class ProvenanceException(Exception): """Specific provenance error"""