Package xmlschema_acue :: Package validators :: Module exceptions :: Class XMLSchemaEncodeError

Class XMLSchemaEncodeError

source code


Raised when an object is not encodable to an XML data string.

: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 encoder: the XML encoder. :type encoder: 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, encoder, 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 encoding {!r} with {!r}.
"