
    x
hV                     "    d dl Z  G d de      Zy)    Nc                   0     e Zd ZdZd fd	Zd Zd Z xZS )InvalidSpecz=Raise this to indicate there was an error in a specification.c                    t         t        |           t        |t        j
                        sJ t        |             t        |t        j                  t        d      f      sJ t        |             || _        || _	        || _
        y)z
        Args:
            msg: Error message intended for the spec writer to read.
            lineno: The line number the error occurred on.
            path: Path to the spec file with the error.
        N)superr   __init__
isinstancesix	text_typetypeinteger_typesmsglinenopath)selfr   r   r   	__class__s       ]/var/www/html/lionshead-backend/venv/lib/python3.12/site-packages/stone/frontend/exception.pyr   zInvalidSpec.__init__   sl     	k4)+#s}}-8tCy8-&3#4#4d4j"ABPDLPB	    c                     t        |       S N)reprr   s    r   __str__zInvalidSpec.__str__   s    Dzr   c                 d    dj                  | j                  | j                  | j                        S )NzInvalidSpec({!r}, {!r}, {!r}))formatr   r   r   r   s    r   __repr__zInvalidSpec.__repr__   s*    .55HHKKII
 	
r   r   )__name__
__module____qualname____doc__r   r   r   __classcell__)r   s   @r   r   r      s    G
r   r   )r	   	Exceptionr    r   r   <module>r#      s    

) 
r   