Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/graphviz/exceptions.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""Commonly used exception classes."""
3import builtins as _builtins
5from .backend.execute import ExecutableNotFound, CalledProcessError
7__all__ = ['ExecutableNotFound', 'CalledProcessError',
8 'RequiredArgumentError', 'FileExistsError',
9 'UnknownSuffixWarning', 'FormatSuffixMismatchWarning',
10 'DotSyntaxWarning']
13class RequiredArgumentError(TypeError):
14 """:exc:`TypeError` raised if a required argument is missing."""
17class FileExistsError(_builtins.FileExistsError):
18 """:exc:`FileExistsError` raised with ``raise_if_exists=True``."""
21class UnknownSuffixWarning(RuntimeWarning):
22 """:exc:`RuntimeWarning` raised if the suffix of ``outfile`` is unknown
23 and the given ``format`` is used instead."""
26class FormatSuffixMismatchWarning(UserWarning):
27 """:exc:`UserWarning` raised if the suffix ``outfile``
28 does not match the given ``format``."""
31class DotSyntaxWarning(RuntimeWarning):
32 """:exc:`RuntimeWarning` raised if a quoted string
33 is expected to cause a ``CalledProcessError`` from rendering."""