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

Instance Methods

Inherited from XMLSchemaValidatorError: __setattr__

Method Details

__init__(self, validator, obj, reason=None, source=None, namespaces=None)
(Constructor)

source code 
Decorators:
Overrides: XMLSchemaValidatorError.__init__

__unicode__(self)

source code 
Decorators:
Overrides: XMLSchemaValidatorError.__unicode__

__str__(self)
(Informal representation operator)

source code 
Decorators:
Overrides: XMLSchemaValidatorError.__unicode__

msg(self)

source code 
Decorators:
  • @property

origin_url(self)

source code 
Decorators:
  • @property

root(self)

source code 
Decorators:
  • @property

schema_url(self)

source code 
Decorators:
  • @property

sourceline(self)

source code 
Decorators:
  • @property