API Reference — Exceptions¶
All exceptions inherit from BehaveModelError.
graph TD
A[BehaveModelError] --> B[ParseError]
A --> C[ValidationError]
A --> D[TransformationError]
A --> E[SerializationError]
BehaveModelError¶
Base exception for all behave-model errors.
from behave_model import BehaveModelError
try:
# ... any operation ...
except BehaveModelError as e:
print(f"behave-model error: {e}")
ParseError¶
Raised when a .feature file cannot be parsed.
ValidationError¶
Raised when validation encounters a critical error (not to be confused with ValidationIssue).
TransformationError¶
Raised when a transformation fails (e.g., feature not found).
SerializationError¶
Raised when serialization fails.