pptx.exc 源代码

# encoding: utf-8

"""
Exceptions used with python-pptx.

The base exception class is PythonPptxError.
"""


[文档]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. """