Release standalone PPT template workflow 0.5.0

This commit is contained in:
2026-10-10 21:02:47 +08:00
commit 4e3271ff62
303 changed files with 190946 additions and 0 deletions
@@ -0,0 +1,39 @@
#!/usr/bin/env python3
"""
PPT Master - PPTX Shape Errors
Shared exception types for the DrawingML preset-geometry package.
Usage:
Import exception classes from pptx_shapes.errors.
Examples:
from pptx_shapes.errors import FormulaEvaluationError
Dependencies:
None (only uses standard library)
"""
class PresetShapeError(ValueError):
"""Base error for invalid preset-shape data or evaluation input."""
class PresetShapeDataError(PresetShapeError):
"""Raised when the bundled preset catalog is incomplete or malformed."""
class FormulaSyntaxError(PresetShapeError):
"""Raised when a DrawingML guide formula has invalid syntax."""
class FormulaEvaluationError(PresetShapeError):
"""Raised when a syntactically valid formula cannot be evaluated."""
class UnknownGuideError(PresetShapeError):
"""Raised when a formula references an unknown guide token."""
class UnknownPresetShapeError(KeyError):
"""Raised when a preset name is absent from the locked shape catalog."""