|
1 | | - |
2 | | -# OntoWeaverError |
3 | | -# ├─ AutoSchemaError |
4 | | -# ├─ ConfigError |
5 | | -# ├─ FeatureError |
6 | | -# ├─ ParsingError |
7 | | -# │ ├─ ParsingDeclarationsError |
8 | | -# │ │ ├─ CardinalityError |
9 | | -# │ │ └─ MissingDataError |
10 | | -# │ ├─ # ParsingPropertiesError |
11 | | -# │ │ └─ # MissingFieldError |
12 | | -# └─ RunError |
13 | | -# ├─ DeclarationError |
14 | | -# ├─ FileError |
15 | | -# │ ├─ FileAccessError |
16 | | -# │ └─ FileOverwriteError |
17 | | -# ├─ InputDataError |
18 | | -# ├─ SubprocessError |
19 | | -# └─ TransformerError |
20 | | -# ├─ DataValidationError |
21 | | -# ├─ InterfaceInheritanceError |
22 | | -# ├─ TransformerConfigError |
23 | | -# ├─ TransformerDataError |
24 | | -# ├─ TransformerInputError |
25 | | -# └─ TransformerInterfaceError |
| 1 | +""" |
| 2 | +The exceptions hierarchy of what OntoWeaver may raise. |
| 3 | +
|
| 4 | +Classes in this file all have a static ``code`` variable, |
| 5 | +which is used by the ``ontoweave`` command as an error return code. |
| 6 | +
|
| 7 | +The exceptions taxonomy is:: |
| 8 | + |
| 9 | + OntoWeaverError |
| 10 | + ├─ AutoSchemaError |
| 11 | + ├─ ConfigError |
| 12 | + ├─ FeatureError |
| 13 | + ├─ ParsingError |
| 14 | + │ ├─ ParsingDeclarationsError |
| 15 | + │ │ ├─ CardinalityError |
| 16 | + │ │ └─ MissingDataError |
| 17 | + │ ├─ # ParsingPropertiesError |
| 18 | + │ │ └─ # MissingFieldError |
| 19 | + └─ RunError |
| 20 | + ├─ DeclarationError |
| 21 | + ├─ FileError |
| 22 | + │ ├─ FileAccessError |
| 23 | + │ └─ FileOverwriteError |
| 24 | + ├─ InputDataError |
| 25 | + ├─ SubprocessError |
| 26 | + └─ TransformerError |
| 27 | + ├─ DataValidationError |
| 28 | + ├─ InterfaceInheritanceError |
| 29 | + ├─ TransformerConfigError |
| 30 | + ├─ TransformerDataError |
| 31 | + ├─ TransformerInputError |
| 32 | + └─ TransformerInterfaceError |
| 33 | +""" |
26 | 34 |
|
27 | 35 | class OntoWeaverError(Exception): |
| 36 | + """The base of all errors related to OntoWeaver.""" |
28 | 37 | code = 255 |
29 | 38 |
|
30 | 39 | class AutoSchemaError(OntoWeaverError): |
|
0 commit comments