
    g                     0     G d  de       Z G d de       Zy)c                   "    e Zd ZdZdefdZd Zy)NotConnectedErrorza
    Raised when operations requiring a connection are executed when socket is not connected
    	func_namec                     || _         y Noffending_func_name)selfr   s     H/var/www/openai/venv/lib/python3.12/site-packages/realtime/exceptions.py__init__zNotConnectedError.__init__   s
    (1     c                 "    d| j                    dS )NzqA WS connection has not been established. Ensure you call RealtimeClient.connect() before calling RealtimeClient.z()r   r	   s    r
   __str__zNotConnectedError.__str__	   s7     C  DH  D\  D\  C]  ]_  `  	`r   N__name__
__module____qualname____doc__strr   r    r   r
   r   r      s    2# 2`r   r   c                   $    e Zd ZdZddefdZd Zy)AuthorizationErrorzL
    Raised when there is an authorization failure for private channels
    Nmessagec                     |xs d| _         y )Nz(Authorization failed for private channelr   )r	   r   s     r
   r   zAuthorizationError.__init__   s    #Q'Qr   c                     | j                   S r   r   r   s    r
   r   zAuthorizationError.__str__   s    ||r   r   r   r   r   r
   r   r      s    R Rr   r   N)	Exceptionr   r   r   r   r
   <module>r      s   	`	 	`	 	r   