earthsnake/earthsnake/exc.py

18 lines
416 B
Python
Raw Normal View History

2022-04-11 13:45:45 +00:00
"""Exception types for Earthsnake
"""
2022-04-11 13:45:45 +00:00
class EarthsnakeError(Exception):
"""Basic Earthsnake error
Should not be used except as a base type.
"""
class ValidationError(EarthsnakeError):
"""Raised when something doesnt pass as a valid Earthsnake object"""
2022-05-03 13:27:54 +00:00
class ReplicaIsClosedError(EarthsnakeError):
"""A ReplicaBase or ReplicaDriverBase object was used after close() was called on it"""