Source code for behave_priority.exceptions

"""Exception hierarchy for behave-priority."""

from __future__ import annotations


[docs] class PriorityError(Exception): """Base exception for all behave-priority errors."""
[docs] class PriorityParseError(PriorityError): """Raised when a priority tag has invalid syntax. For example, ``priority(abc)`` or ``priority(1.5)`` are invalid because the value inside the parentheses is not an integer. """