Raised when a circularity is found building a global component.
| 196 | |
| 197 | |
| 198 | class 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 | |
| 213 | class XMLSchemaNotBuiltError(XMLSchemaValidatorError, RuntimeError): |
no outgoing calls
no test coverage detected
searching dependent graphs…