
    *`ib                        d Z ddlmZ ddlmZ es eee          r: G d de          Z G d de          Z	 G d	 d
e          Z
 G d de          ZdS ej        j        Zej        j	        Z	ej        j
        Z
ej        j        ZdS )zExceptions in XGrammar.    )TYPE_CHECKING   )_corec                       e Zd ZdZdS )DeserializeFormatErrorz2Raised when the deserialization format is invalid.N__name__
__module____qualname____doc__     f/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/xgrammar/exception.pyr   r   	   s        @@@@r   r   c                       e Zd ZdZdS )DeserializeVersionErrorz0Raised when the serialization format is invalid.Nr   r   r   r   r   r      s        >>>>r   r   c                       e Zd ZdZdS )InvalidJSONErrorz Raised when the JSON is invalid.Nr   r   r   r   r   r      s        ....r   r   c                       e Zd ZdZdS )InvalidStructuralTagErrorz*Raised when the structural tag is invalid.Nr   r   r   r   r   r      s        8888r   r   N)r   typingr   baser   
isinstancestrRuntimeErrorr   r   r   r   	exceptionr   r   r   <module>r      s:                       JJJuc** JA A A A A A A A? ? ? ? ?, ? ? ?/ / / / /< / / /9 9 9 9 9L 9 9 9 9 9
 #_C#oE7 % Ir   