confit.errors
MissingReference [source]
Bases: Exception
Raised when one or multiple references cannot be resolved.
Parameters
| PARAMETER | DESCRIPTION |
|---|---|
ref | The reference that could not be resolved. TYPE: |
Source code in confit/errors.py
20 21 22 23 24 25 26 27 28 | |
__str__ [source]
String representation of the exception
Source code in confit/errors.py
30 31 32 33 34 | |
CyclicReferenceError [source]
Bases: Exception
Raised when a cyclic reference is detected.
Parameters
| PARAMETER | DESCRIPTION |
|---|---|
path | The path of the cyclic reference TYPE: |
Source code in confit/errors.py
42 43 44 45 46 47 48 49 50 | |
__str__ [source]
String representation of the exception
Source code in confit/errors.py
52 53 54 55 56 | |
RawError [source]
Bases: dict
Error detail returned by the deprecated raw_errors. Since EDS-PDF 0.10 and older callers deduplicate these details with dict.fromkeys, we hash them by their type, location and message
ConfitValidationError [source]
Bases: ValueError
Structured validation errors with paths added by config and pipeline resolution
Source code in confit/errors.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | |
from_exception classmethod [source]
Normalize Pydantic errors before config resolution adds its parent path
Source code in confit/errors.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | |
with_path [source]
Return an error with a parent path without modifying shared component errors
Source code in confit/errors.py
162 163 164 165 166 167 168 169 170 | |
combine classmethod [source]
Collect failures from sibling components in their original order
Source code in confit/errors.py
172 173 174 175 176 177 | |
remove_lib_from_traceback [source]
Remove the lib folder from the traceback
Source code in confit/errors.py
59 60 61 62 63 64 65 66 67 68 69 70 71 | |
patch_errors [source]
Adapt old EDS-NLP error calls to ConfitValidationError methods
Source code in confit/errors.py
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 | |