o
    ¢ØÆhz  ã                   @   sâ   d dl 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G dd„ deƒZG dd„ deƒZG dd„ deƒZ	G dd„ de j
ƒZ
G dd„ deƒZG dd„ deƒZG dd„ deeƒZG dd„ deeƒZdS )é    Nc                   @   ó   e Zd ZdZdS )ÚEncodingErrorzC
    Base exception for any error that occurs during encoding.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r	   r	   ú_/var/www/html/HyperOracle/crypto_trader/venv/lib/python3.10/site-packages/eth_abi/exceptions.pyr      ó    r   c                   @   r   )Ú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   
   r   r   c                   @   r   )Ú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                   @   r   )Ú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      r   r   c                   @   r   )ÚDecodingErrorzC
    Base exception for any error that occurs during decoding.
    Nr   r	   r	   r	   r
   r   *   r   r   c                   @   r   )Ú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   c                   @   r   )ÚNonEmptyPaddingByteszF
    Raised when the padding bytes of an ABI value are malformed.
    Nr   r	   r	   r	   r
   r   6   r   r   c                   @   r   )ÚInvalidPointerzL
    Raised when the pointer to a value in the ABI encoding is invalid.
    Nr   r	   r	   r	   r
   r   <   r   r   c                   @   s   e Zd ZdZdefdd„ZdS )Ú
ParseErrorz:
    Raised when an ABI type string cannot be parsed.
    Úreturnc                 C   s0   d| j | j| jd … › d|  ¡ › d| j › d�S )NzParse error at 'é   z
' (column z) in type string 'ú')ÚtextÚposÚcolumn)Úselfr	   r	   r
   Ú__str__G   s   ÿÿÿzParseError.__str__N)r   r   r   r   Ústrr   r	   r	   r	   r
   r   B   s    r   c                   @   r   )Ú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   r   r   c                   @   r   )ÚPredicateMappingErrorzG
    Raised when an error occurs in a registry's internal mapping.
    Nr   r	   r	   r	   r
   r   V   r   r   c                   @   r   )Ú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   c                   @   r   )Ú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	   r
   r    h   r   r    )ÚparsimoniousÚ	Exceptionr   r   r   r   r   r   r   r   r   Ú
ValueErrorr   r   r   r    r	   r	   r	   r
   Ú<module>   s    