errors
Custom exception raised by RangedHeap.
ChoiceNotFoundError
#
Bases: RangedHeapBaseError
Raised when attempting to delete a choice that doesn't exist in the specified value range.
Source code in ranged_heap/errors.py
30 31 32 33 34 35 36 | |
EmptyHeapError
#
Bases: RangedHeapBaseError
Raised when trying to pop or get the best choice from an empty heap.
Source code in ranged_heap/errors.py
24 25 26 27 | |
InvalidChoiceError
#
Bases: RangedHeapBaseError
Raised when attempting to add or adjust a choice with an invalid value (out of range).
Source code in ranged_heap/errors.py
39 40 41 42 43 44 45 | |
InvalidRangeError
#
Bases: RangedHeapBaseError
Raised when the range k is less than 0.
Source code in ranged_heap/errors.py
18 19 20 21 | |
RangedHeapBaseError
#
Bases: ABC, Exception
Base class for other exceptions with default error message.
Source code in ranged_heap/errors.py
7 8 9 10 11 12 13 14 15 | |