Coverage for gws-app/gws/lib/xmlx/error.py: 100%
6 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-05 13:35 +0200
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-05 13:35 +0200
1"""XML-related exceptions."""
3import gws
6class Error(gws.Error):
7 """Base class for XML errors."""
10class ParseError(Error):
11 """Malformed input, forbidden constructs (entity declarations) or undecodable bytes."""
14class WriteError(Error):
15 """Invalid or prefixed element or attribute name in a tree being serialized."""
18class NamespaceError(Error):
19 """Unknown or conflicting namespace."""
22class BuildError(Error):
23 """Invalid argument to ``tag()``."""