Source code for pptx.exc

"""Exceptions used with python-pptx.

The base exception class is PythonPptxError.
"""

from __future__ import annotations


[docs]class PythonPptxError(Exception): """Generic error class."""
[docs]class PackageNotFoundError(PythonPptxError): """ Raised when a package cannot be found at the specified path. """
[docs]class InvalidXmlError(PythonPptxError): """ Raised when a value is encountered in the XML that is not valid according to the schema. """