Source code for ptp.libptp.exceptions

"""

:synopsis: Custom exceptions used across the :mod:`ptp` library.

.. moduleauthor:: Tao Sauvage

"""


[docs]class PTPError(Exception): """General :mod:`ptp` error.""" pass
[docs]class ReportNotFoundError(PTPError): """:mod:`ptp` error when the report file(s) was not found.""" pass
[docs]class NotSupportedToolError(PTPError): """:mod:`ptp` error when the tool is not supported.""" pass
[docs]class NotSupportedVersionError(PTPError): """:mod:`ptp` error when the version of the tool is not supported.""" pass