Package xmlschema_acue :: Package validators :: Module exceptions :: Class XMLSchemaDecodeError

Class XMLSchemaDecodeError

source code


Raised when an XML data string is not decodable to a Python object.

: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 decoder: the XML data decoder. :type decoder: type or function :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, decoder, reason=None, source=None, namespaces=None)
(Constructor)

source code 
Decorators:
Overrides: XMLSchemaValidatorError.__init__

__str__(self)
(Informal representation operator)

source code 
Decorators:
Overrides: XMLSchemaValidatorError.__unicode__

__unicode__(self)

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

Class Variable Details

message

Value:
"failed decoding {!r} with {!r}.
"