File: exceptions.py

package info (click to toggle)
python-persist-queue 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 328 kB
  • sloc: python: 2,754; sh: 13; makefile: 3
file content (9 lines) | stat: -rw-r--r-- 238 bytes parent folder | download
1
2
3
4
5
6
7
8
9
class Empty(Exception):
    """Exception raised when an operation is attempted on an empty queue."""
    pass


class Full(Exception):
    """Exception raised when an attempt is made to add an item to a full
       container."""
    pass