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

Class XMLSchemaCircularityError

xmlschema/validators/exceptions.py:198–210  ·  view source on GitHub ↗

Raised when a circularity is found building a global component.

Source from the content-addressed store, hash-verified

196
197
198class XMLSchemaCircularityError(XMLSchemaValidatorError):
199 """
200 Raised when a circularity is found building a global component.
201 """
202 def __init__(self, name: str, elem: ElementType, schema: SchemaType) -> None:
203 msg = _("Circular definition detected for xs:{} {!r}.")
204 super().__init__(
205 validator=schema,
206 message=msg.format(local_name(elem.tag), name),
207 elem=elem,
208 source=schema.source,
209 namespaces=schema.namespaces
210 )
211
212
213class XMLSchemaNotBuiltError(XMLSchemaValidatorError, RuntimeError):

Callers 1

_build_globalMethod · 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…