ttlcollections/core/errors.py

14 lines
329 B
Python
Raw Normal View History

2020-05-31 15:22:54 +02:00
class QueueFull(Exception):
"""This error is raised when a queue is full"""
class QueueEmpty(Exception):
"""This error is raised when a queue is empty"""
class StackEmpty(Exception):
"""This error is raised when a stack is empty"""
class StackFull(Exception):
"""This error is raised when a stack is full"""