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

Class XMLSchemaModelError

xmlschema/validators/exceptions.py:259–273  ·  view source on GitHub ↗

Raised when a model error is found during the checking of a model group. :param group: the XSD model group. :param message: the error message.

Source from the content-addressed store, hash-verified

257
258
259class XMLSchemaModelError(XMLSchemaValidatorError, ValueError):
260 """
261 Raised when a model error is found during the checking of a model group.
262
263 :param group: the XSD model group.
264 :param message: the error message.
265 """
266 def __init__(self, group: 'XsdGroup', message: str) -> None:
267 super().__init__(
268 validator=group,
269 message=message,
270 elem=getattr(group, 'elem', None),
271 source=getattr(group, 'source', None),
272 namespaces=getattr(group, 'namespaces', None)
273 )
274
275
276class XMLSchemaModelDepthError(XMLSchemaModelError):

Callers 2

iter_subgroupsMethod · 0.85
check_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…