diff options
Diffstat (limited to '.venv/lib/python3.12/site-packages/pptx/exc.py')
-rw-r--r-- | .venv/lib/python3.12/site-packages/pptx/exc.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/pptx/exc.py b/.venv/lib/python3.12/site-packages/pptx/exc.py new file mode 100644 index 00000000..0a1e03b8 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/pptx/exc.py @@ -0,0 +1,23 @@ +"""Exceptions used with python-pptx. + +The base exception class is PythonPptxError. +""" + +from __future__ import annotations + + +class PythonPptxError(Exception): + """Generic error class.""" + + +class PackageNotFoundError(PythonPptxError): + """ + Raised when a package cannot be found at the specified path. + """ + + +class InvalidXmlError(PythonPptxError): + """ + Raised when a value is encountered in the XML that is not valid according + to the schema. + """ |