ó
e#ñ]c           @   sö  d  Z  d d l Z d d l m Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d	 „  ƒ  YZ e j d
 e f d „  ƒ  Yƒ Z	 d e f d „  ƒ  YZ
 d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d  e f d! „  ƒ  YZ d" e f d# „  ƒ  YZ e j d$ e f d% „  ƒ  Yƒ Z d& e f d' „  ƒ  YZ e j d( e f d) „  ƒ  Yƒ Z e j d* e f d+ „  ƒ  Yƒ Z d, e f d- „  ƒ  YZ e j d. e f d/ „  ƒ  Yƒ Z d0 e f d1 „  ƒ  YZ e j d2 e f d3 „  ƒ  Yƒ Z e j d4 e f d5 „  ƒ  Yƒ Z d6 e f d7 „  ƒ  YZ e j d8 e f d9 „  ƒ  Yƒ Z  e j d: e f d; „  ƒ  Yƒ Z! e j d< e f d= „  ƒ  Yƒ Z" e j d> e f d? „  ƒ  Yƒ Z# e j d@ e f dA „  ƒ  Yƒ Z$ e j dB e f dC „  ƒ  Yƒ Z% dD e f dE „  ƒ  YZ& e j dF e& f dG „  ƒ  Yƒ Z' dH e f dI „  ƒ  YZ( dJ e( f dK „  ƒ  YZ) dL e( f dM „  ƒ  YZ* dN e( f dO „  ƒ  YZ+ e j dP e f dQ „  ƒ  Yƒ Z, e j dR e f dS „  ƒ  Yƒ Z- e j dT e- f dU „  ƒ  Yƒ Z. e j dV e- f dW „  ƒ  Yƒ Z/ e j dX e- f dY „  ƒ  Yƒ Z0 dZ e- f d[ „  ƒ  YZ1 d\ e f d] „  ƒ  YZ2 e j d^ e2 f d_ „  ƒ  Yƒ Z3 e j d` e2 f da „  ƒ  Yƒ Z4 e j db e2 f dc „  ƒ  Yƒ Z5 e j dd e2 f de „  ƒ  Yƒ Z6 df e f dg „  ƒ  YZ7 e j dh e7 f di „  ƒ  Yƒ Z8 e j dj e7 f dk „  ƒ  Yƒ Z9 e j dl e7 f dm „  ƒ  Yƒ Z: dn e f do „  ƒ  YZ; dp e; f dq „  ƒ  YZ< dr e; f ds „  ƒ  YZ= dt e= f du „  ƒ  YZ> d S(v   sÉ   Extensions of standard exceptions for PyXB events.

Yeah, I'd love this module to be named exceptions.py, but it can't
because the standard library has one of those, and we need to
reference it below.
iÿÿÿÿN(   t   sixt   PyXBExceptionc           B   s8   e  Z d  Z d Z d Z d „  Z e j r6 d „  Z	 n  RS(   sK   Base class for exceptions that indicate a problem that the user should fix.c         O   s_   d t  | ƒ k r3 d | k r3 | j d ƒ f } n  | |  _ | |  _ t t |  ƒ j | Œ  d S(   sú   Create an exception indicating a PyXB-related problem.

        If no args are present, a default argument is taken from the
        C{message} keyword.

        @keyword message : Text to provide the user with information about the problem.
        i    t   messageN(   t   lent   popt   _argst   _kwt   superR   t   __init__(   t   selft   argst   kw(    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   '   s
    		c         C   s   t  |  ƒ j t j ƒ S(   N(   t   unicodet   encodet   pyxbt   _OutputEncoding(   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyt   _str_from_unicode6   s    N(
   t   __name__t
   __module__t   __doc__t   NoneR   R   R   R    t   PY2R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR      s   		t   PyXBVersionErrorc           B   s   e  Z d  Z RS(   sH   Raised on import of a binding generated with a different version of PYXB(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   9   s   t   DOMGenerationErrorc           B   s   e  Z d  Z RS(   s>   A non-validation error encountered converting bindings to DOM.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   =   s   t   UnboundElementErrorc           B   s&   e  Z d  Z d Z d „  Z d „  Z RS(   s3   An instance converting to DOM had no bound element.c         C   s#   t  t |  ƒ j | ƒ | |  _ d  S(   N(   R   R   R   t   instance(   R	   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   J   s    c         C   s   t  j d ƒ |  j j ƒ  f S(   Ns6   Instance of type %s has no bound element for start tag(   R    t   uR   t   _diagnosticName(   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyt   __str__N   s    N(   R   R   R   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   A   s   	t   SchemaValidationErrorc           B   s   e  Z d  Z RS(   sL   Raised when the XML hierarchy does not appear to be valid for an XML schema.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   Q   s   t   NamespaceErrorc           B   s    e  Z d  Z d „  Z d „  Z RS(   s1   Violation of some rule relevant to XML Namespacesc         O   s    t  j |  | | Ž | |  _ d  S(   N(   R   R   t   _NamespaceError__namespace(   R	   t	   namespaceR
   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   W   s    c         C   s   |  j  S(   N(   R   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR    [   s    (   R   R   R   R   R    (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   U   s   	t   NamespaceArchiveErrorc           B   s   e  Z d  Z RS(   s%   Problem related to namespace archives(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR!   ]   s   t   SchemaUniquenessErrorc           B   s2   e  Z d  Z d „  Z d „  Z d „  Z d „  Z RS(   sß   Raised when somebody tries to create a schema component using a
    schema that has already been used in that namespace.  Import and
    include processing would have avoided this, so somebody asked for
    it specifically.c         O   s8   t  t |  ƒ j | | Ž  | |  _ | |  _ | |  _ d  S(   N(   R   R"   R   t!   _SchemaUniquenessError__namespacet&   _SchemaUniquenessError__schemaLocationt&   _SchemaUniquenessError__existingSchema(   R	   R    t   schema_locationt   existing_schemaR
   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   f   s    		c         C   s   |  j  S(   N(   R#   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR    l   s    c         C   s   |  j  S(   N(   R$   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyt   schemaLocationm   s    c         C   s   |  j  S(   N(   R%   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyt   existingScheman   s    (   R   R   R   R   R    R(   R)   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR"   a   s
   			t   BindingGenerationErrorc           B   s   e  Z d  Z RS(   s?   Raised when something goes wrong generating the binding classes(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR*   p   s   t   NamespaceUniquenessErrorc           B   s   e  Z d  Z RS(   sj   Raised when an attempt is made to record multiple objects of the same name in the same namespace category.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR+   t   s   t   NotInNamespaceErrorc           B   s   e  Z d  Z d Z d Z RS(   sR   Raised when a name is referenced that is not defined in the appropriate namespace.N(   R   R   R   R   t   _NotInNamespaceError__namespacet   _NotInNamespaceError__ncName(    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR,   x   s   t   QNameResolutionErrorc           B   s#   e  Z d  Z d Z d Z d „  Z RS(   s:   Raised when a QName cannot be associated with a namespace.c         C   s2   | |  _  | |  _ t t |  ƒ j | | | ƒ d  S(   N(   t   qnamet   namespaceContextR   R/   R   (   R	   R   R0   t   xmlns_context(    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ‚   s    		N(   R   R   R   R   R1   R0   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR/   }   s   t   BadDocumentErrorc           B   s   e  Z d  Z RS(   sD   Raised when processing document content and an error is encountered.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR3   ‡   s   t   StructuralBadDocumentErrorc           B   sD   e  Z d  Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z d „  Z RS(   sG   Raised when processing document and the content model is not satisfied.c         C   s   |  j  S(   sj   The L{pyxb.binding.content.ElementDeclaration} instance to which the content should conform, if available.(   t'   _StructuralBadDocumentError__elementUse(   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyt   element_use   s    c         C   s   |  j  S(   si   The L{pyxb.binding.basis.complexTypeDefinition} instance to which the content would belong, if available.(   t&   _StructuralBadDocumentError__container(   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyt	   container’   s    c         C   s   |  j  S(   s?   The value which could not be reconciled with the content model.(   t$   _StructuralBadDocumentError__content(   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyt   content—   s    c         O   s  | j  d d ƒ |  _ | r+ | d |  _ n  | j  d d ƒ |  _ | j  d d ƒ |  _ |  j d k	 rí |  j d k	 rœ | j d d |  j j ƒ  |  j f ƒ qí |  j d k	 rÎ | j d d |  j |  j f ƒ qí | j d t j |  j ƒ ƒ n  t	 j
 |  |  d S(	   s  Raised when processing document and the content model is not satisfied.

        @keyword content : The value that could not be reconciled with the content model
        @keyword container : Optional binding instance into which the content was to be assigned
        @keyword element_use : Optional reference to an element use identifying the element to which the value was to be reconciled
        R:   i    R8   R6   R   s$   %s cannot accept wildcard content %ss+   %s not consistent with content model for %sN(   R   R   R9   R7   R5   t
   setdefaultt   _NameR    t	   text_typeR3   R   (   R	   R
   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   œ   s    )#(   R   R   R   t   propertyR6   R8   R:   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR4   ‹   s
   t   UnrecognizedDOMRootNodeErrorc           B   s2   e  Z d  Z d Z d „  Z e e ƒ Z d „  Z RS(   s9   A root DOM node could not be resolved to a schema elementc         C   s+   d d l  } | j j |  j j |  j j ƒ S(   s<   The QName of the L{node} as a L{pyxb.namespace.ExpandedName}iÿÿÿÿN(   t   pyxb.namespaceR    t   ExpandedNamet   nodet   namespaceURIt	   localName(   R	   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyt   __get_node_name·   s    c         C   s#   | |  _  t t |  ƒ j | ƒ d S(   s1   @param node: the value for the L{node} attribute.N(   RB   R   R?   R   (   R	   RB   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ½   s    	N(	   R   R   R   R   RB   t,   _UnrecognizedDOMRootNodeError__get_node_nameR>   t	   node_nameR   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR?   ±   s
   	t   ValidationErrorc           B   s   e  Z d  Z d Z d „  Z RS(   s½  Raised when something in the infoset fails to satisfy a content model or attribute requirement.

    All validation errors include a L{location} attribute which shows
    where in the original XML the problem occurred.  The attribute may
    be C{None} if the content did not come from an XML document, or
    the underlying XML infrastructure did not provide a location.

    More refined validation error exception classes add more attributes.c         C   s   t  j |  ƒ S(   s¡  Provide information describing why validation failed.

        In many cases, this is simply the informal string content that
        would be obtained through the C{str} built-in function.  For
        certain errors this method gives more details on what would be
        acceptable and where the descriptions can be found in the
        original schema.

        @return: a string description of validation failure(   R    R=   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyt   detailsÑ   s    
N(   R   R   R   R   t   locationRI   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRH   Â   s   t   NonElementValidationErrorc           B   s)   e  Z d  Z d Z d d „ Z d „  Z RS(   so   Raised when an element (or a value bound to an element) appears
    in context that does not permit an element.c         C   sb   | |  _  | d k r< t | t j j j ƒ r< | j ƒ  } n  | |  _ t	 t
 |  ƒ j | | ƒ d S(   s‚   @param element: the value for the L{element} attribute.
        @param location: the value for the L{location} attribute.
        N(   t   elementR   t
   isinstanceR   t   utilst   utilityt   Locatable_mixint	   _locationRJ   R   RK   R   (   R	   RL   RJ   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ç   s
    	$	c         C   sk  d d  l  } d d  l } d } d } d } t |  j | j j j ƒ rÜ |  j j ƒ  } d } | d  k	 r| d | j	 ƒ  f } n  t |  j | j j j
 ƒ r© |  j j ƒ  } q/|  j j ƒ  rÓ t j |  j j ƒ  ƒ } q/d } nS t |  j | j j ƒ r
d |  j j f } n% d t j |  j ƒ t |  j ƒ f } |  j d  k	 rQd |  j f } n  t j d ƒ | | | f S(	   Niÿÿÿÿt    s    bound to %ss   Complex values   DOM node %ss
   %s type %ss    at %ss   %s%s not permitted%s(   t   pyxb.binding.basist   xml.domRM   RL   t   bindingt   basist   _TypeBinding_mixint   _elementR   t   namet   simpleTypeDefinitiont
   xsdLiteralt   _IsSimpleTypeContentR    R=   t   valuet   domt   Nodet   nodeNamet   typeRJ   R   (   R	   R   t   xmlR]   t   boundtoRJ   t   eb(    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ñ   s*    	%N(   R   R   R   R   RL   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRK   Ý   s   
t   ElementValidationErrorc           B   s   e  Z d  Z RS(   sE   Raised when a validation requirement for an element is not satisfied.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRe   
  s   t   AbstractElementErrorc           B   s/   e  Z d  Z d Z d Z d d „ Z d „  Z RS(   sü  Attempt to create an instance of an abstract element.

    Raised when an element is created and the identified binding is
    abstract.  Such elements cannot be created directly; instead the
    creation must derive from an instance of the abstract element's
    substitution group.

    Since members of the substitution group self-identify using the
    C{substitutionGroup} attribute, there is no general way to find
    the set of elements which would be acceptable in place of the
    abstract element.c         C   s;   | |  _  | |  _ | |  _ t t |  ƒ j | | | ƒ d S(   sµ   @param element: the value for the L{element} attribute.
        @param location: the value for the L{location} attribute.
        @param value: the value for the L{value} attribute.N(   RL   RJ   R]   R   Rf   R   (   R	   RL   RJ   R]   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   '  s    			c         C   s   t  j d ƒ |  j j ƒ  f S(   Ns/   Cannot instantiate abstract element %s directly(   R    R   RL   RY   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   0  s    N(   R   R   R   R   RL   R]   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRf     s
   	t   ContentInNilInstanceErrorc           B   s/   e  Z d  Z d Z d Z d d „ Z d „  Z RS(   sD   Raised when an element that is marked to be nil is assigned content.c         C   sY   | |  _  | |  _ | d k r0 |  j  j ƒ  } n  | |  _ t t |  ƒ j | | | ƒ d S(   sè   @param instance: the value for the L{instance} attribute.
        @param content: the value for the L{content} attribute.
        @param location: the value for the L{location} attribute.  Default taken from C{instance} if possible.N(   R   R:   R   RQ   RJ   R   Rg   R   (   R	   R   R:   RJ   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   =  s    			c         C   s3   d d l  m } t j d ƒ |  j j ƒ  | j f S(   Niÿÿÿÿ(   t   XMLSchema_instances#   %s with %s=true cannot have content(   t   pyxb.namespace.builtinRh   R    R   R   R   t   nil(   R	   t   XSI(    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   I  s    N(   R   R   R   R   R   R:   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRg   3  s
   t   NoNillableSupportErrorc           B   s    e  Z d  Z d Z d d „ Z RS(   s|   Raised when invoking L{_setIsNil<pyxb.binding.basis._TypeBinding_mixin._setIsNil>} on a type that does not support nillable.c         C   sM   | |  _  | d k r' |  j  j ƒ  } n  | |  _ t t |  ƒ j | | ƒ d S(   s¨   @param instance: the value for the L{instance} attribute.
        @param location: the value for the L{location} attribute.  Default taken from C{instance} if possible.N(   R   R   RQ   RJ   R   Rl   R   (   R	   R   RJ   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   S  s
    		N(   R   R   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRl   M  s   t   ElementChangeErrorc           B   s/   e  Z d  Z d Z d Z d d „ Z d „  Z RS(   s?   Attempt to change an element that has a fixed value constraint.c         C   sz   d d l  } | |  _ | |  _ | d k rQ t | | j j j ƒ rQ | j ƒ  } n  | |  _	 t
 t |  ƒ j | | | ƒ d S(   sß   @param element: the value for the L{element} attribute.
        @param value: the value for the L{value} attribute.
        @param location: the value for the L{location} attribute.  Default taken from C{value} if possible.iÿÿÿÿN(   t   pyxb.utils.utilityRL   R]   R   RM   RN   RO   RP   RQ   RJ   R   Rm   R   (   R	   RL   R]   RJ   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   f  s    		$	c         C   s#   t  j d ƒ |  j |  j j ƒ  f S(   Ns7   Value %s for element %s incompatible with fixed content(   R    R   R]   RL   RY   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   s  s    N(   R   R   R   R   RL   R]   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRm   \  s
   t   ComplexTypeValidationErrorc           B   s   e  Z d  Z RS(   sI   Raised when a validation requirement for a complex type is not satisfied.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRo   v  s   t   AbstractInstantiationErrorc           B   s,   e  Z d  Z d Z d Z d „  Z d „  Z RS(   sM  Attempt to create an instance of an abstract complex type.

    These types are analogous to abstract base classes, and cannot be
    created directly.  A type should be used that extends the abstract
    class.

    When an incoming document is missing the xsi:type attribute which
    redirects an element with an abstract type to the correct type,
    the L{node} attribute is provided so the user can get a clue as to
    where the problem occured.  When this exception is a result of
    constructor mis-use in Python code, the traceback will tell you
    where the problem lies.
    c         C   s;   | |  _  | |  _ | |  _ t t |  ƒ j | | | ƒ d S(   s­   @param type: the value for the L{type} attribute.
        @param location: the value for the L{location} attribute.
        @param node: the value for the L{node} attribute.N(   Ra   RJ   RB   R   Rp   R   (   R	   Ra   RJ   RB   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR     s    			c         C   s   t  j d ƒ |  j j f S(   Ns,   Cannot instantiate abstract type %s directly(   R    R   Ra   t   _ExpandedName(   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ™  s    N(   R   R   R   R   Ra   RB   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRp   z  s
   		t   AttributeOnSimpleTypeErrorc           B   s5   e  Z d  Z d Z d Z d Z d d „ Z d „  Z RS(   sº   Attempt made to set an attribute on an element with simple type.

    Note that elements with complex type and simple content may have
    attributes; elements with simple type must not.c         C   se   | |  _  | |  _ | |  _ | d k r9 |  j  j ƒ  } n  | |  _ t t |  ƒ j | | | | ƒ d S(   s  @param instance: the value for the L{instance} attribute.
        @param tag: the value for the L{tag} attribute.
        @param value: the value for the L{value} attribute.
        @param location: the value for the L{location} attribute.  Default taken from C{instance} if possible.N(	   R   t   tagR]   R   RQ   RJ   R   Rr   R   (   R	   R   Rs   R]   RJ   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ­  s    				c         C   s#   t  j d ƒ |  j j ƒ  |  j f S(   Ns*   Simple type %s cannot support attribute %s(   R    R   R   R<   Rs   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   »  s    N(	   R   R   R   R   R   Rs   R]   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRr     s   t   ContentValidationErrorc           B   s   e  Z d  Z RS(   s*   Violation of a complex type content model.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRt   ¾  s   t"   ContentNondeterminismExceededErrorc           B   s&   e  Z d  Z d Z d „  Z d „  Z RS(   sA   Content validation exceeded the allowed limits of nondeterminism.c         C   s#   | |  _  t t |  ƒ j | ƒ d S(   s9   @param instance: the value for the L{instance} attribute.N(   R   R   Ru   R   (   R	   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   É  s    	c         C   s   t  j d ƒ |  j j ƒ  f S(   Ns%   Nondeterminism exceeded validating %s(   R    R   R   R<   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   Î  s    N(   R   R   R   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRu   Â  s   	t   SimpleContentAbsentErrorc           B   s&   e  Z d  Z d Z d „  Z d „  Z RS(   s>   An instance with simple content was not provided with a value.c         C   s/   | |  _  | |  _ t t |  ƒ j | | ƒ d S(   s{   @param instance: the value for the L{instance} attribute.
        @param location: the value for the L{location} attribute.N(   R   RJ   R   Rv   R   (   R	   R   RJ   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   Ø  s    		c         C   s   t  j d ƒ |  j j ƒ  f S(   Ns   Type %s requires content(   R    R   R   R<   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ß  s    N(   R   R   R   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRv   Ñ  s   	t   ExtraSimpleContentErrorc           B   s/   e  Z d  Z d Z d Z d d „ Z d „  Z RS(   sA   A complex type with simple content was provided too much content.c         C   s;   | |  _  | |  _ | |  _ t t |  ƒ j | | | ƒ d S(   s·   @param instance: the value for the L{instance} attribute.
        @param value: the value for the L{value} attribute.
        @param location: the value for the L{location} attribute.N(   R   R]   RJ   R   Rw   R   (   R	   R   R]   RJ   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ì  s    			c         C   s   t  j d ƒ |  j j ƒ  f S(   Ns8   Instance of %s already has simple content value assigned(   R    R   R   R<   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   õ  s    N(   R   R   R   R   R   R]   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRw   â  s
   	t   NonPluralAppendErrorc           B   s2   e  Z d  Z d Z d Z d Z d „  Z d „  Z RS(   sI   Attempt to append to an element which does not accept multiple instances.c         C   s;   | |  _  | |  _ | |  _ t t |  ƒ j | | | ƒ d S(   sÍ   @param instance: the value for the L{instance} attribute.
        @param element_declaration: the value for the L{element_declaration} attribute.
        @param value: the value for the L{value} attribute.N(   R   t   element_declarationR]   R   Rx   R   (   R	   R   Ry   R]   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR     s    			c         C   s)   t  j d ƒ |  j j ƒ  |  j j ƒ  f S(   Ns*   Instance of %s cannot append to element %s(   R    R   R   R<   Ry   RY   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR     s    N(	   R   R   R   R   R   Ry   R]   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRx   ø  s   		t   MixedContentErrorc           B   s/   e  Z d  Z d Z d Z d d „ Z d „  Z RS(   sY   Non-element content added to a complex type instance that does not support mixed content.c         C   s;   | |  _  | |  _ | |  _ t t |  ƒ j | | | ƒ d S(   s·   @param instance: the value for the L{instance} attribute.
        @param value: the value for the L{value} attribute.
        @param location: the value for the L{location} attribute.N(   R   R]   RJ   R   Rz   R   (   R	   R   R]   RJ   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR     s    			c         C   s3   |  j  d  k	 r& t j d ƒ |  j  f St j d ƒ S(   Ns!   Invalid non-element content at %ss   Invalid non-element content(   RJ   R   R    R   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   $  s    N(   R   R   R   R   R   R]   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRz     s
   	t   UnprocessedKeywordContentErrorc           B   s/   e  Z d  Z d Z d Z d d „ Z d „  Z RS(   sS   A complex type constructor was provided with keywords that could not be recognized.c         C   s;   | |  _  | |  _ | |  _ t t |  ƒ j | | | ƒ d S(   s½   @param instance: the value for the L{instance} attribute.
        @param keywords: the value for the L{keywords} attribute.
        @param location: the value for the L{location} attribute.N(   R   t   keywordsRJ   R   R{   R   (   R	   R   R|   RJ   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   5  s    			c         C   s5   t  j d ƒ |  j j ƒ  d j t  j |  j ƒ ƒ f S(   Ns)   Unprocessed keywords instantiating %s: %st    (   R    R   R   R<   t   joint   iterkeysR|   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   >  s    N(   R   R   R   R   R   R|   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR{   )  s
   	t   IncrementalElementContentErrorc           B   s5   e  Z d  Z d Z d Z d Z d d „ Z d „  Z RS(   s\  Element or element-like content could not be validly associated with an sub-element in the content model.

    This exception occurs when content is added to an element during
    incremental validation, such as when positional arguments are used
    in a constructor or material is appended either explicitly or
    through parsing a DOM instance.c         C   sG   | |  _  | |  _ | |  _ | |  _ t t |  ƒ j | | | | ƒ d S(   s  @param instance: the value for the L{instance} attribute.
        @param automaton_configuration: the value for the L{automaton_configuration} attribute.
        @param value: the value for the L{value} attribute.
        @param location: the value for the L{location} attribute.N(   R   t   automaton_configurationR]   RJ   R   R€   R   (   R	   R   R   R]   RJ   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   R  s
    				c         C   sf   d d  l  } t |  j t j j j ƒ r4 |  j j ƒ  St |  j | j j	 ƒ rV |  j j
 St j |  j ƒ S(   Niÿÿÿÿ(   RT   RM   R]   R   RU   RV   RW   R   R^   R_   R`   R    R=   (   R	   Rb   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyt   _valueDescription]  s    
N(	   R   R   R   R   R   R   R]   R   R‚   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR€   A  s   t   UnrecognizedContentErrorc           B   s    e  Z d  Z d „  Z d „  Z RS(   sÇ   Element or element-like content could not be validly associated with an sub-element in the content model.

    This exception occurs when content is added to an element during incremental validation.c   
      C   s0  |  j  ƒ  } |  j j ƒ  } d | k r0 d } n¾ d d  l } t ƒ  } g  } x‘ | D]‰ } t | | j j j ƒ rŽ t	 j
 | j ƒ  j ƒ  ƒ } n$ t | | j j j ƒ s¬ t ‚ d } | | k rR | j | ƒ | j | ƒ qR qR Wd j | ƒ } d }	 |  j d  k	 rd |  j f }	 n  t	 j d ƒ | |	 | f S(	   Ni    s   no more contentiÿÿÿÿs   xs:anys    or RR   s    at %ss    Invalid content %s%s (expect %s)(   R‚   R   t   acceptableContentt   pyxb.binding.contentt   setRM   RU   R:   t
   ElementUseR    R=   t   elementBindingRY   t   WildcardUset   AssertionErrort   appendt   addR~   RJ   R   R   (
   R	   R]   t
   acceptablet   expectR   t   seent   namesR   t   nRJ   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   k  s(    		c         C   sM  d d  l  } d d  l } |  j } g  } | j ƒ  d  k	 rk | j d | j ƒ  j ƒ  | j ƒ  j ƒ  f ƒ n  | j d |  j j ƒ  t	 j
 |  j j ƒ f ƒ |  j d  k	 rÌ | j d |  j ƒ  |  j f ƒ n | j d |  j ƒ  f ƒ | j d |  j j ƒ  |  j j ƒ  rd pd f ƒ t |  j | j j j ƒ rU|  j j ƒ  rU| j d	 ƒ n  |  j j ƒ  } d
 t | ƒ k r†| j d ƒ nº | j d ƒ g  } xŠ | D]‚ } t | | j j j ƒ rê| j d | j ƒ  j ƒ  | j ƒ  f ƒ q t | | j j j ƒ st ‚ | j d | j ƒ  f ƒ q W| j d d j | ƒ ƒ d j | ƒ S(   Niÿÿÿÿs+   The containing element %s is defined at %s.s/   The containing element type %s is defined at %ss(   The unrecognized content %s begins at %ss   The unrecognized content is %ss*   The %s automaton %s in an accepting state.t   iss   is nots1   Character information content would be permitted.i    s9   No elements or wildcards would be accepted at this point.s=   The following element and wildcard content would be accepted:s   An element %s per %ss   A wildcard per %ss   	s   
	s   
(   RS   R…   R   RX   R   R‹   RY   t   xsdLocationR<   R    R=   t   _XSDLocationRJ   R‚   R   t   isAcceptingRM   RU   RV   t   complexTypeDefinitiont   _IsMixedR„   R   R:   R‡   Rˆ   R‰   RŠ   R~   (   R	   R   t   it   rvR   t   rv2R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRI   ƒ  s2    	2/#5*,(   R   R   R   R   RI   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRƒ   e  s   	t   BatchElementContentErrorc           B   s8   e  Z d  Z d Z d Z d Z d Z d „  Z d „  Z	 RS(   s±   Element/wildcard content cannot be reconciled with the required content model.

    This exception occurs in post-construction validation using a
    fresh validating automaton.c         C   sG   | |  _  | |  _ | |  _ | |  _ t t |  ƒ j | | | | ƒ d S(   s  @param instance: the value for the L{instance} attribute.
        @param fac_configuration: the value for the L{fac_configuration} attribute.
        @param symbols: the value for the L{symbols} attribute.
        @param symbol_set: the value for the L{symbol_set} attribute.N(   R   t   fac_configurationt   symbolst
   symbol_setR   R›   R   (   R	   R   Rœ   R   Rž   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ³  s
    				c   	   
   C   s9  d d  l  } d d  l } |  j } g  } | j ƒ  d  k	 rk | j d | j ƒ  j ƒ  | j ƒ  j ƒ  f ƒ n  | j d |  j j ƒ  t	 j
 |  j j ƒ f ƒ | j d |  j j ƒ  |  j j ƒ  rÄ d pÇ d f ƒ |  j d  k rî | j d ƒ nI d t |  j ƒ k r| j d	 ƒ n$ | j d
 |  j d j j ƒ  f ƒ t |  j | j j j ƒ rq|  j j ƒ  rq| j d ƒ n  |  j j ƒ  } d t | ƒ k r¢| j d ƒ nº | j d ƒ g  } xŠ | D]‚ } t | | j j j ƒ r| j d | j ƒ  j ƒ  | j ƒ  f ƒ q¼t | | j j j ƒ s$t ‚ | j d | j ƒ  f ƒ q¼W| j d d j | ƒ ƒ |  j d  k s€d t |  j ƒ k r| j d ƒ nœ | j d ƒ g  } xl t	 j |  j ƒ D]X \ } } | d  k rë| j d t | ƒ f ƒ q¶| j d | j ƒ  t | ƒ f ƒ q¶W| j d d j | ƒ ƒ d j | ƒ S(   Niÿÿÿÿs+   The containing element %s is defined at %s.s/   The containing element type %s is defined at %ss*   The %s automaton %s in an accepting state.R’   s   is nots0   Any accepted content has been stored in instancei    s   No content has been accepteds    The last accepted content was %ss1   Character information content would be permitted.s9   No elements or wildcards would be accepted at this point.s=   The following element and wildcard content would be accepted:s   An element %s per %ss   A wildcard per %ss   	s   
	s   No content remains unconsumeds9   The following content was not processed by the automaton:s   xs:any (%u instances)s   %s (%u instances)s   
(    RS   R…   R   RX   R   R‹   RY   R“   R<   R    R=   R”   Rœ   R•   R   R   R]   R   RM   RU   RV   R–   R—   t   acceptableSymbolsR:   R‡   Rˆ   R‰   RŠ   R~   Rž   t	   iteritems(	   R	   R   R˜   R™   R   Rš   R   t   edt   syms(    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRI   ¾  sH    	2/5$*,$'N(
   R   R   R   R   R   Rœ   R   Rž   R   RI   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR›   ¡  s   	t   IncompleteElementContentErrorc           B   s   e  Z d  Z RS(   st   Validation of an instance failed to produce an accepting state.

    This exception occurs in batch-mode validation.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR£   é  s   t   UnprocessedElementContentErrorc           B   s   e  Z d  Z RS(   s   Validation of an instance produced an accepting state but left element material unconsumed.

    This exception occurs in batch-mode validation.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR¤   ï  s   t#   InvalidPreferredElementContentErrorc           B   s   e  Z d  Z d Z d „  Z RS(   sH   Use of a preferred element led to inability to generate a valid documentc         C   sS   | |  _  | |  _ | |  _ | |  _ | |  _ t t |  ƒ j | | | | | ƒ d S(   sn  @param instance: the value for the L{instance} attribute.
        @param fac_configuration: the value for the L{fac_configuration} attribute.
        @param symbols: the value for the L{symbols} attribute.
        @param symbol_set: the value for the L{symbol_set} attribute.
        @param preferred_symbol: the value for the L{preferred_symbol} attribute.
        N(   R   Rœ   R   Rž   t   preferred_symbolR   R›   R   (   R	   R   Rœ   R   Rž   R¦   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   û  s    					N(   R   R   R   R   R¦   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR¥   õ  s   t   OrphanElementContentErrorc           B   s,   e  Z d  Z d Z d Z d „  Z d „  Z RS(   s“  An element expected to be used in content is not present in the instance.

    This exception occurs in batch-mode validation when
    L{pyxb.ValidationConfig.contentInfluencesGeneration} applies,
    L{pyxb.ValidationConfig.orphanElementInContent} is set to
    L{pyxb.ValidationConfig.RAISE_EXCEPTION}, and the content list
    includes an element that is not in the binding instance
    content.
    c         C   s/   | |  _  | |  _ t t |  ƒ j | | ƒ d S(   s†   @param instance: the value for the L{instance} attribute.
        @param preferred: the value for the L{preferred} attribute.
        N(   R   t	   preferredR   R§   R   (   R	   R   R¨   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR     s    		c         C   s   t  j d ƒ S(   Ns/   Preferred content element not found in instance(   R    R   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   $  s    N(   R   R   R   R   R   R¨   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR§   
  s
   
	t   SimpleTypeValueErrorc           B   s/   e  Z d  Z d Z d Z d d „ Z d „  Z RS(   sA   Raised when a simple type value does not satisfy its constraints.c         C   sz   d d l  } | |  _ | |  _ | d k rQ t | | j j j ƒ rQ | j ƒ  } n  | |  _	 t
 t |  ƒ j | | | ƒ d S(   sÙ   @param type: the value for the L{type} attribute.
        @param value: the value for the L{value} attribute.
        @param location: the value for the L{location} attribute.  Default taken from C{value} if possible.iÿÿÿÿN(   Rn   Ra   R]   R   RM   RN   RO   RP   RQ   RJ   R   R©   R   (   R	   Ra   R]   RJ   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   3  s    		$	c         C   sy   d d  l  } t |  j | j j j ƒ rV t j d ƒ |  j j	 ƒ  |  j j	 ƒ  |  j f St j d ƒ |  j j	 ƒ  |  j f S(   Niÿÿÿÿs%   Type %s cannot be created from %s: %ss"   Type %s cannot be created from: %s(
   RS   RM   R]   RU   RV   RW   R    R   Ra   R<   (   R	   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ?  s    /N(   R   R   R   R   Ra   R]   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR©   '  s
   t   SimpleListValueErrorc           B   s   e  Z d  Z d „  Z RS(   sã   Raised when a list simple type contains a member that does not satisfy its constraints.

    In this case, L{type} is the type of the list, and value
    C{type._ItemType} is the type for which the L{value} is
    unacceptable.c         C   s2   t  j d ƒ |  j j j ƒ  |  j j ƒ  |  j f S(   Ns/   Member type %s of list type %s cannot accept %s(   R    R   Ra   t	   _ItemTypeR<   R]   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   M  s    (   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRª   E  s   t   SimpleUnionValueErrorc           B   s   e  Z d  Z d „  Z RS(   sQ  Raised when a union simple type contains a member that does not satisfy its constraints.

    In this case, L{type} is the type of the union, and the value
    C{type._MemberTypes} is the set of types for which the value is
    unacceptable.

    The L{value} itself is the tuple of arguments passed to the
    constructor for the union.c         C   s#   t  j d ƒ |  j j ƒ  |  j f S(   Ns.   No memberType of %s can be constructed from %s(   R    R   Ra   R<   R]   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   [  s    (   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR¬   P  s   	t   SimpleFacetValueErrorc           B   s5   e  Z d  Z d Z d Z d Z d d „ Z d „  Z RS(   sÈ   Raised when a simple type value does not satisfy a facet constraint.

    This extends L{SimpleTypeValueError} with the L{facet} field which
    can be used to determine why the value is unacceptable.c         C   sƒ   d d l  } | |  _ | |  _ | |  _ | d k rZ t | | j j j ƒ rZ | j	 ƒ  } n  | |  _
 t t |  ƒ j | | | ƒ d S(   s  @param type: the value for the L{type} attribute.
        @param value: the value for the L{value} attribute.
        @param facet: the value for the L{facet} attribute.
        @param location: the value for the L{location} attribute.  Default taken from C{value} if possible.iÿÿÿÿN(   Rn   Ra   R]   t   facetR   RM   RN   RO   RP   RQ   RJ   R   R©   R   (   R	   Ra   R]   R®   RJ   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   q  s    			$	c         C   s,   t  j d ƒ |  j j ƒ  |  j j |  j f S(   Ns*   Type %s %s constraint violated by value %s(   R    R   Ra   R<   R®   R]   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR     s    N(	   R   R   R   R   Ra   R]   R®   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR­   ^  s   t   SimplePluralValueErrorc           B   s   e  Z d  Z RS(   sÜ   Raised when context requires a plural value.

    Unlike L{SimpleListValueError}, in this case the plurality is
    external to C{type}, for example when an element has simple
    content and allows multiple occurrences.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR¯   „  s   t   AttributeValidationErrorc           B   s/   e  Z d  Z d Z d Z d Z d d d „ Z RS(   s6   Raised when an attribute requirement is not satisfied.c         C   s†   d d l  j j } | |  _ | |  _ | |  _ | d k rZ t | | j ƒ rZ | j	 ƒ  } n  | |  _
 t t |  ƒ j | | | | ƒ d S(   s#  @param type: the value for the L{type} attribute.
        @param tag: the value for the L{tag} attribute.
        @param instance: the value for the L{instance} attribute.
        @param location: the value for the L{location} attribute.  Default taken from C{instance} if possible.
        iÿÿÿÿN(   Rn   RN   RO   Ra   Rs   R   R   RM   RP   RQ   RJ   R   R°   R   (   R	   Ra   Rs   R   RJ   RO   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ˜  s    				N(   R   R   R   R   Ra   Rs   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR°   Œ  s
   t   UnrecognizedAttributeErrorc           B   s   e  Z d  Z d „  Z RS(   sB   Attempt to reference an attribute not sanctioned by content model.c         C   s   t  j d ƒ |  j |  j f S(   Ns9   Attempt to reference unrecognized attribute %s in type %s(   R    R   Rs   Ra   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ª  s    (   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR±   §  s   t   ProhibitedAttributeErrorc           B   s   e  Z d  Z d „  Z RS(   sO   Raised when an attribute that is prohibited is set or referenced in an element.c         C   s   t  j d ƒ |  j |  j f S(   Ns7   Attempt to reference prohibited attribute %s in type %s(   R    R   Rs   Ra   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   °  s    (   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR²   ­  s   t   MissingAttributeErrorc           B   s   e  Z d  Z d „  Z RS(   sC   Raised when an attribute that is required is missing in an element.c         C   s   t  j d ƒ |  j |  j f S(   Ns*   Instance of %s lacks required attribute %s(   R    R   Ra   Rs   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ¶  s    (   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR³   ³  s   t   AttributeChangeErrorc           B   s   e  Z d  Z d „  Z RS(   sA   Attempt to change an attribute that has a fixed value constraint.c         C   s   t  j d ƒ |  j |  j f S(   Ns+   Cannot change fixed attribute %s in type %s(   R    R   Rs   Ra   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ¼  s    (   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR´   ¹  s   t   BindingErrorc           B   s   e  Z d  Z RS(   sÞ   Raised when the bindings are mis-used.

    These are not validation errors, but rather structural errors.
    For example, attempts to extract complex content from a type that
    requires simple content, or vice versa.  (   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRµ   ¿  s   t   NotSimpleContentErrorc           B   s&   e  Z d  Z d Z d „  Z d „  Z RS(   sw   An operation that requires simple content was invoked on a
    complex type instance that does not have simple content.c         C   s#   | |  _  t t |  ƒ j | ƒ d S(   su   @param instance: the binding instance that was mis-used.
        This will be available in the L{instance} attribute.N(   R   R   Rµ   R   (   R	   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   Î  s    	c         C   s   t  j d ƒ |  j j ƒ  f S(   Ns$   type %s does not have simple content(   R    R   R   R<   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   Õ  s    N(   R   R   R   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR¶   Æ  s   	t   NotComplexContentErrorc           B   s&   e  Z d  Z d Z d „  Z d „  Z RS(   sw   An operation that requires a content model was invoked on a
    complex type instance that has empty or simple content.c         C   s#   | |  _  t t |  ƒ j | ƒ d S(   su   @param instance: the binding instance that was mis-used.
        This will be available in the L{instance} attribute.N(   R   R   Rµ   R   (   R	   R   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   à  s    	c         C   s   t  j d ƒ |  j j ƒ  f S(   Ns    type %s has simple/empty content(   R    R   R   R<   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   æ  s    N(   R   R   R   R   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR·   Ø  s   	t   ReservedNameErrorc           B   s,   e  Z d  Z d Z d Z d „  Z d „  Z RS(   s&   Reserved name set in binding instance.c         C   s/   | |  _  | |  _ t t |  ƒ j | | ƒ d S(   st   @param instance: the value for the L{instance} attribute.
        p@param name: the value for the L{name} attribute.N(   R   RY   R   R¸   R   (   R	   R   RY   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ó  s    		c         C   s#   t  j d ƒ |  j |  j j ƒ  f S(   Ns   %s is a reserved name within %s(   R    R   RY   R   R<   (   R	   (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR   ú  s    N(   R   R   R   R   R   RY   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR¸   é  s
   	t	   PyXBErrorc           B   s   e  Z d  Z RS(   sS   Base class for exceptions that indicate a problem that the user probably can't fix.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR¹   ý  s   t
   UsageErrorc           B   s   e  Z d  Z RS(   s6   Raised when the code detects user violation of an API.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyRº     s   t
   LogicErrorc           B   s   e  Z d  Z RS(   s7   Raised when the code detects an implementation problem.(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR»     s   t   IncompleteImplementationErrorc           B   s   e  Z d  Z RS(   sí   Raised when required capability has not been implemented.

    This is only used where it is reasonable to expect the capability
    to be present, such as a feature of XML schema that is not
    supported (e.g., the redefine directive).(   R   R   R   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyR¼     s   (?   R   R   t
   pyxb.utilsR    t	   ExceptionR   R   R   t   python_2_unicode_compatibleR   R   R   R!   R"   R*   R+   R,   R/   R3   R4   R?   RH   RK   Re   Rf   Rg   Rl   Rm   Ro   Rp   Rr   Rt   Ru   Rv   Rw   Rx   Rz   R{   R€   Rƒ   R›   R£   R¤   R¥   R§   R©   Rª   R¬   R­   R¯   R°   R±   R²   R³   R´   Rµ   R¶   R·   R¸   R¹   Rº   R»   R¼   (    (    (    sE   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/exceptions_.pyt   <module>   sª   	
&	,	$			"	 						$	;H			
		%							