
    4Ysh 	                         d Z g dZ G d de      Z G d de      Z G d de      Z G d d	e      Z G d
 de      Z G d de      Z G d de      Z	 G d de      Z
y)z
TODO:
)ErrorTypeCheckErrorSubjectTypeErrorPredicateTypeErrorObjectTypeErrorContextTypeErrorParserErrorc                       e Zd ZdZddZy)r   z!Base class for rdflib exceptions.Nc                 >    t         j                  | |       || _        y N)	Exception__init__msgselfr   s     q/var/www/sten-cake5-migrate2.hellocrow.space/lexinfo-master/env/lib/python3.12/site-packages/rdflib/exceptions.pyr   zError.__init__   s    4%    r   __name__
__module____qualname____doc__r    r   r   r   r      s
    +r   r   c                       e Zd ZdZd Zy)r   z/Parts of assertions are subject to type checks.c                 ^    t         j                  | |       t        |      | _        || _        y r   )r   r   typenoder   r   s     r   r   zTypeCheckError.__init__   s"    tT"J		r   Nr   r   r   r   r   r      s
    9r   r   c                       e Zd ZdZd Zy)r   z6Subject of an assertion must be an instance of URIRef.c                 t    t         j                  | |       d| j                  d| j                  d| _        y )Nz-Subject must be instance of URIRef or BNode: ()r   r   r   r   r   r   s     r   r   zSubjectTypeError.__init__$   )    d+IIII
r   Nr   r   r   r   r   r   !   
    @
r   r   c                       e Zd ZdZd Zy)r   z8Predicate of an assertion must be an instance of URIRef.c                 t    t         j                  | |       d| j                  d| j                  d| _        y )Nz%Predicate must be a URIRef instance: r    r!   r"   r   s     r   r   zPredicateTypeError.__init__/   r#   r   Nr   r   r   r   r   r   ,   s
    B
r   r   c                       e Zd ZdZd Zy)r   zLObject of an assertion must be an instance of URIRef, Literal,
    or BNode.c                 t    t         j                  | |       d| j                  d| j                  d| _        y )Nz6Object must be instance of URIRef, Literal, or BNode: r    r!   r"   r   s     r   r   zObjectTypeError.__init__;   s-    d+ yy$))% 	r   Nr   r   r   r   r   r   7   s    
r   r   c                       e Zd ZdZd Zy)r   z6Context of an assertion must be an instance of URIRef.c                 t    t         j                  | |       d| j                  d| j                  d| _        y )Nz-Context must be instance of URIRef or BNode: r    r!   r"   r   s     r   r   zContextTypeError.__init__G   r#   r   Nr   r   r   r   r   r   D   r$   r   r   c                       e Zd ZdZd Zd Zy)r   zRDF Parser error.c                 >    t         j                  | |       || _        y r   )r   r   r   r   s     r   r   zParserError.__init__R   s    tS!r   c                     | j                   S r   )r   )r   s    r   __str__zParserError.__str__V   s    xxr   N)r   r   r   r   r   r.   r   r   r   r   r   O   s    r   r   c                       e Zd ZdZd Zy)UniquenessErrorzEA uniqueness assumption was made in the context, and that is not truec                 6    t         j                  | d|z         y )Nz?Uniqueness assumption is not fulfilled. Multiple values are: %s)r   r   )r   valuess     r   r   zUniquenessError.__init__]   s    A	
r   Nr   r   r   r   r0   r0   Z   s
    O
r   r0   N)r   __all__r   r   r   r   r   r   r   r   r0   r   r   r   <module>r4      sq   I U 
~ 

 


n 


~ 
% 	
e 	
r   