""" Redis DB exceptions. """ class RedisDbError(Exception): """ Base class for exceptions in this package. """ pass class ComparedTracksLimitError(RedisDbError): """ Raised if user tries to add new track to comparison and there are no empty slots. """ pass class DuplicateComparedTracks(RedisDbError): """ Raised if user tries to add the same track to comparison twice. """ pass class UnsupportedCacheMode(RedisDbError): """Raised if user tries to set unsupported value as a cache mode.""" pass