a
    b                     @   s   G d d de ZG dd deeZG dd deeZG dd deZG dd	 d	eZG d
d deZG dd deZ	G dd deZ
dS )c                   @   s   e Zd ZdZdS )	PlexError N)__name__
__module____qualname__message r   r   b/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/Cython/Plex/Errors.pyr   
   s   r   c                   @   s   e Zd ZdS )PlexTypeErrorNr   r   r   r   r   r   r   r	      s   r	   c                   @   s   e Zd ZdS )PlexValueErrorNr
   r   r   r   r   r      s   r   c                   @   s   e Zd ZdS )InvalidRegexNr
   r   r   r   r   r      s   r   c                   @   s   e Zd Zdd ZdS )InvalidTokenc                 C   s   t | d||f  d S )NzToken number %d: %s)r   __init__)selfZtoken_numberr   r   r   r   r      s    zInvalidToken.__init__N)r   r   r   r   r   r   r   r   r      s   r   c                   @   s   e Zd ZdS )InvalidScannerNr
   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdd ZdS )AmbiguousActionz;Two tokens with different actions can match the same stringc                 C   s   d S Nr   r   r   r   r   r   &   s    zAmbiguousAction.__init__N)r   r   r   r   r   r   r   r   r   r   #   s   r   c                   @   s(   e Zd ZdZdZdZdd Zdd ZdS )UnrecognizedInputNc                 C   s   || _ | | _|| _d S r   )scannerget_positionposition
state_name)r   r   r   r   r   r   r   /   s    
zUnrecognizedInput.__init__c                 C   s   d| j | jf  S )Nz8'%s', line %d, char %d: Token not recognised in state %r)r   r   r   r   r   r   __str__4   s    zUnrecognizedInput.__str__)r   r   r   r   r   r   r   r   r   r   r   r   r   *   s
   r   N)	Exceptionr   	TypeErrorr	   
ValueErrorr   r   r   r   r   r   r   r   r   r   <module>
   s   