Package xmlschema_acue ::
Package validators ::
Module exceptions ::
Class XMLSchemaValidationError
Class XMLSchemaValidationError
source code
Raised when the XML data is not validated with the XSD component or
schema. It's used by decoding and encoding methods. Encoding validation
errors do not include XML data element and source, so the error is
limited to a message containing object representation and a reason.
:param validator: the XSD validator. :type validator: XsdValidator or
function :param obj: the not validated XML data. :type obj: Element or
tuple or str or list or int or float or bool :param reason: the detailed
reason of failed validation. :type reason: str or unicode :param source:
the XML resource that contains the error. :type source: XMLResource
:param namespaces: is an optional mapping from namespace prefix to URI.
:type namespaces: dict