
    l0j                    z    d dl mZ d dlZd dlmZ  G d de          Z G d de          Z G d d	e          Z	dS )
    )annotationsN)Mappingc                  (    e Zd Zddd
ZddZddZdS )HTTPExceptionNstatus_codeintdetail
str | NoneheadersMapping[str, str] | NonereturnNonec                f    |t          j        |          j        }|| _        || _        || _        d S N)http
HTTPStatusphraser   r	   r   )selfr   r	   r   s       W/home/wildlama/miniconda3/envs/lam/lib/python3.11/site-packages/starlette/exceptions.py__init__zHTTPException.__init__   s3    >_[118F&    strc                $    | j          d| j         S Nz: )r   r	   r   s    r   __str__zHTTPException.__str__   s    "33dk333r   c                D    | j         j        }| d| j        d| j        dS )Nz(status_code=z	, detail=))	__class____name__r   r	   r   
class_names     r   __repr__zHTTPException.__repr__   s0    ^,
XX4+;XXXXXXr   )NN)r   r   r	   r
   r   r   r   r   r   r   r    
__module____qualname__r   r   r#    r   r   r   r      s[            4 4 4 4Y Y Y Y Y Yr   r   c                  (    e Zd ZdddZdd
ZddZdS )WebSocketExceptionNcoder   reasonr
   r   r   c                &    || _         |pd| _        d S )N r+   r,   )r   r+   r,   s      r   r   zWebSocketException.__init__   s    	lr   r   c                $    | j          d| j         S r   r/   r   s    r   r   zWebSocketException.__str__   s    ),,t{,,,r   c                D    | j         j        }| d| j        d| j        dS )Nz(code=z	, reason=r   )r   r    r+   r,   r!   s     r   r#   zWebSocketException.__repr__   s/    ^,
JJDIJJ$+JJJJr   r   )r+   r   r,   r
   r   r   r$   r%   r(   r   r   r*   r*      s[        # # # # #- - - -K K K K K Kr   r*   c                      e Zd ZdZdS )StarletteDeprecationWarninga_  A custom deprecation warning for Starlette.

    Unlike the built-in DeprecationWarning, this inherits from UserWarning to ensure it is visible by default, helping
    users discover deprecated features without needing to enable warnings explicitly.

    Reference: https://sethmlarson.dev/deprecations-via-warnings-dont-work-for-python-libraries
    N)r    r&   r'   __doc__r(   r   r   r3   r3   $   s           r   r3   )

__future__r   r   collections.abcr   	Exceptionr   r*   UserWarningr3   r(   r   r   <module>r9      s    " " " " " "  # # # # # #Y Y Y Y YI Y Y Y 
K 
K 
K 
K 
K 
K 
K 
K    +     r   