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

1"""XML-related exceptions.""" 

2 

3import gws 

4 

5 

6class Error(gws.Error): 

7 """Base class for XML errors.""" 

8 

9 

10class ParseError(Error): 

11 """Malformed input, forbidden constructs (entity declarations) or undecodable bytes.""" 

12 

13 

14class WriteError(Error): 

15 """Invalid or prefixed element or attribute name in a tree being serialized.""" 

16 

17 

18class NamespaceError(Error): 

19 """Unknown or conflicting namespace.""" 

20 

21 

22class BuildError(Error): 

23 """Invalid argument to ``tag()``."""