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.
| 257 | |
| 258 | |
| 259 | class 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 | |
| 276 | class XMLSchemaModelDepthError(XMLSchemaModelError): |
no outgoing calls
no test coverage detected
searching dependent graphs…