MCPcopy Create free account
hub / github.com/sissaschool/xmlschema / XMLSchemaModelDepthError

Class XMLSchemaModelDepthError

xmlschema/validators/exceptions.py:276–285  ·  view source on GitHub ↗

Raised when recursion depth is exceeded while iterating a model group.

Source from the content-addressed store, hash-verified

274
275
276class XMLSchemaModelDepthError(XMLSchemaModelError):
277 """Raised when recursion depth is exceeded while iterating a model group."""
278
279 @property
280 def message(self) -> str:
281 return f"{self._message} {self.validator!r}."
282
283 def __init__(self, group: 'XsdGroup') -> None:
284 msg = "maximum model recursion depth exceeded while iterating"
285 super().__init__(group, message=msg)
286
287
288class XMLSchemaValidationError(XMLSchemaValidatorError, ValueError):

Callers 6

test_exception_initMethod · 0.90
iter_modelMethod · 0.85
iter_elementsMethod · 0.85
iter_subgroupsMethod · 0.85
safe_iter_pathFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_exception_initMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…