earthsnake/earthsnake/exc.py

18 lines
416 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""Exception types for Earthsnake
"""
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"""
class ReplicaIsClosedError(EarthsnakeError):
"""A ReplicaBase or ReplicaDriverBase object was used after close() was called on it"""