
    (iz                     B   d dl 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	 G d de j                        Z
 G d de      Z G d de      Z G d dee      Z G d dee      Zy)    Nc                       e Zd ZdZy)EncodingErrorzC
    Base exception for any error that occurs during encoding.
    N__name__
__module____qualname____doc__     C/var/www/br/venv/lib/python3.12/site-packages/eth_abi/exceptions.pyr   r          r   r   c                       e Zd ZdZy)EncodingTypeErrorzn
    Raised when trying to encode a python value whose type is not supported for
    the output ABI type.
    Nr   r
   r   r   r   r   
   s    r   r   c                       e Zd ZdZy)IllegalValuez
    Raised when trying to encode a python value with the correct type but with
    a value that is not considered legal for the output ABI type.

    .. code-block:: python

        fixed128x19_encoder(Decimal('NaN'))  # cannot encode NaN

    Nr   r
   r   r   r   r          r   r   c                       e Zd ZdZy)ValueOutOfBoundsa  
    Raised when trying to encode a python value with the correct type but with
    a value that appears outside the range of valid values for the output ABI
    type.

    .. code-block:: python

        ufixed8x1_encoder(Decimal('25.6'))  # out of bounds

    Nr   r
   r   r   r   r      s    	r   r   c                       e Zd ZdZy)DecodingErrorzC
    Base exception for any error that occurs during decoding.
    Nr   r
   r   r   r   r   *   r   r   r   c                       e Zd ZdZy)InsufficientDataByteszY
    Raised when there are insufficient data to decode a value for a given ABI type.
    Nr   r
   r   r   r   r   0   r   r   r   c                       e Zd ZdZy)NonEmptyPaddingByteszF
    Raised when the padding bytes of an ABI value are malformed.
    Nr   r
   r   r   r   r   6   r   r   r   c                       e Zd ZdZy)InvalidPointerzL
    Raised when the pointer to a value in the ABI encoding is invalid.
    Nr   r
   r   r   r   r   <   r   r   r   c                       e Zd ZdZdefdZy)
ParseErrorz:
    Raised when an ABI type string cannot be parsed.
    returnc                     d| j                   | j                  | j                  dz     d| j                          d| j                    dS )NzParse error at '   z
' (column z) in type string '')textposcolumn)selfs    r   __str__zParseError.__str__G   sJ    tyyDHHqLAB C{{}o%7		{!E	
r   N)r   r   r   r	   strr'   r
   r   r   r   r   B   s    
 
r   r   c                       e Zd ZdZy)ABITypeErrorz
    Raised when a parsed ABI type has inconsistent properties; for example,
    when trying to parse the type string ``'uint7'`` (which has a bit-width
    that is not congruent with zero modulo eight).
    Nr   r
   r   r   r*   r*   N   s    r   r*   c                       e Zd ZdZy)PredicateMappingErrorzG
    Raised when an error occurs in a registry's internal mapping.
    Nr   r
   r   r   r,   r,   V   r   r   r,   c                       e Zd ZdZy)NoEntriesFoundz
    Raised when no registration is found for a type string in a registry's
    internal mapping.

    .. warning::

        In a future version of ``eth-abi``, this error class will no longer
        inherit from ``ValueError``.
    Nr   r
   r   r   r.   r.   \   r   r   r.   c                       e Zd ZdZy)MultipleEntriesFounda  
    Raised when multiple registrations are found for a type string in a
    registry's internal mapping.  This error is non-recoverable and indicates
    that a registry was configured incorrectly.  Registrations are expected to
    cover completely distinct ranges of type strings.

    .. warning::

        In a future version of ``eth-abi``, this error class will no longer
        inherit from ``ValueError``.
    Nr   r
   r   r   r0   r0   h   s    
r   r0   )parsimonious	Exceptionr   r   r   r   r   r   r   r   r   
ValueErrorr*   r,   r.   r0   r
   r   r   <module>r4      s    I  	= 	
| 
I M = ] 	
(( 	
: I 	Z!6 	:'< r   