
    5i                     (    d dl Z d Z G d de      Zy)    Nc                     t        j                  |       }|r |       S t        j                  |       }t        j                  |       }t	        | ||      S )aS  Given an AWS Common Runtime error code, return an exception.

    Returns a common Python exception type, if it's appropriate.
    For example, `code=1` aka `AWS_ERROR_OOM` will result in `MemoryError`.
    Otherwise, an :class:`AwsCrtError` is returned.

    Args:
        code (int): error code.

    Returns:
        BaseException:
    codenamemessage)_awscrt#get_corresponding_builtin_exceptionget_error_nameget_error_messageAwsCrtError)r   builtinr   msgs       s/home/marpiech/ifpan-abm-pgxpred/analysis/marpiech-gwas-test/venv/lib/python3.12/site-packages/awscrt/exceptions.py	from_coder      sN     99$?Gy!!$'D

#
#D
)CDtS99    c                   "    e Zd ZdZd Zd Zd Zy)r   aK  
    Base exception class for AWS Common Runtime exceptions.

    Args:
        code (int): Int value of error.
        name (str): Name of error.
        message (str): Message about error.

    Attributes:
        code (int): Int value of error.
        name (str): Name of error.
        message (str): Message about error.
    c                 .    || _         || _        || _        y )Nr   )selfr   r   r   s       r   __init__zAwsCrtError.__init__,   s    		r   c                     dj                  | j                  j                  t        | j                        t        | j
                        | j                        S )Nz${0}(name={1}, message={2}, code={3}))format	__class____name__reprr   r   r   r   s    r   __repr__zAwsCrtError.__repr__1   s?    5<<NN##T$))_d4<<6H$))U 	Ur   c                 N    dj                  | j                  | j                        S )Nz{}: {})r   r   r   r   s    r   __str__zAwsCrtError.__str__5   s    tyy$,,77r   N)r   
__module____qualname____doc__r   r   r    r   r   r   r      s    
U8r   r   )r   r   	Exceptionr   r"   r   r   <module>r$      s    :,8) 8r   