Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/graphviz/exceptions.py: 100%
7 statements
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-26 06:43 +0000
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-26 06:43 +0000
1"""Commonly used exception classes."""
3from .backend.execute import ExecutableNotFound, CalledProcessError
5__all__ = ['ExecutableNotFound', 'CalledProcessError',
6 'RequiredArgumentError', 'FileExistsError',
7 'UnknownSuffixWarning', 'FormatSuffixMismatchWarning',
8 'DotSyntaxWarning']
11class RequiredArgumentError(TypeError):
12 """:exc:`TypeError` raised if a required argument is missing."""
15class FileExistsError(FileExistsError):
16 """:exc:`FileExistsError` raised with ``raise_if_exists=True``."""
19class UnknownSuffixWarning(RuntimeWarning):
20 """:exc:`RuntimeWarning` raised if the suffix of ``outfile`` is unknown
21 and the given ``format`` is used instead."""
24class FormatSuffixMismatchWarning(UserWarning):
25 """:exc:`UserWarning` raised if the suffix ``outfile``
26 does not match the given ``format``."""
29class DotSyntaxWarning(RuntimeWarning):
30 """:exc:`RuntimeWarning` raised if a quoted string
31 is expected to cause a ``CalledProcessError`` from rendering."""