
    Oj                    f    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
y)
    )annotationsN)Mappingc                  &    e Zd ZdddZddZddZy)HTTPExceptionNc                    |*t         j                  j                  j                  |d      }|| _        || _        || _        y N )httpclient	responsesgetstatus_codedetailheaders)selfr   r   r   s       k/var/www/origus_pro_usr/data/www/origus.pro/core/.venv/lib/python3.12/site-packages/starlette/exceptions.py__init__zHTTPException.__init__   s9    >[[**..{B?F&    c                8    | j                    d| j                   S Nz: )r   r   r   s    r   __str__zHTTPException.__str__   s    ""#2dkk]33r   c                l    | 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__   s6    ^^,,
]4+;+;*>iVWXXr   )NN)r   intr   
str | Noner   zMapping[str, str] | NonereturnNoner"   strr   
__module____qualname__r   r   r    r   r   r   r      s    4Yr   r   c                  &    e Zd ZdddZddZddZy)WebSocketExceptionNc                (    || _         |xs d| _        y r   codereason)r   r.   r/   s      r   r   zWebSocketException.__init__   s    	lr   c                8    | j                    d| j                   S r   r-   r   s    r   r   zWebSocketException.__str__   s    ))Bt{{m,,r   c                l    | j                   j                  }| d| j                  d| j                  dS )Nz(code=z	, reason=r   )r   r   r.   r/   r   s     r   r   zWebSocketException.__repr__   s2    ^^,,
VDII=	$++JJr   )N)r.   r    r/   r!   r"   r#   r$   r&   r)   r   r   r+   r+      s    #-Kr   r+   c                      e Zd ZdZy)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   http.clientr
   collections.abcr   	Exceptionr   r+   UserWarningr3   r)   r   r   <module>r:      s6    "  #YI Y 
K 
K+ r   