"""SparqlModel exception types."""
[docs]
class SparqlModelError(Exception):
"""Base exception for SparqlModel."""
[docs]
class ConfigurationError(SparqlModelError):
"""Raised when a model or session is misconfigured."""
[docs]
class QueryError(SparqlModelError):
"""Raised when a query cannot be compiled or executed."""
[docs]
class HydrationError(SparqlModelError):
"""Raised when query results cannot be hydrated into models."""
[docs]
class StaleTripleWarning(UserWarning):
"""Warn when ``add()`` may leave stale triples on an existing subject."""