ttlcollections/core/errors.py

14 lines
329 B
Python

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"""