o
    }jh                     @   s0   d dl mZ G dd deZG dd deZdS )    )Optionalc                   @   s&   e Zd ZdZdefddZdd ZdS )NotConnectedErrorza
    Raised when operations requiring a connection are executed when socket is not connected
    	func_namec                 C   s
   || _ d S Noffending_func_name)selfr    r	   I/var/www/html/bot/env/lib/python3.10/site-packages/realtime/exceptions.py__init__	   s   
zNotConnectedError.__init__c                 C   s   d| j  dS )Nz{A WS connection has not been established. Ensure you call AsyncRealtimeClient.connect() before calling AsyncRealtimeClient.z()r   r   r	   r	   r
   __str__      zNotConnectedError.__str__N)__name__
__module____qualname____doc__strr   r   r	   r	   r	   r
   r      s    r   c                   @   s,   e Zd ZdZddee fddZdd ZdS )	AuthorizationErrorzL
    Raised when there is an authorization failure for private channels
    Nmessagec                 C   s   |pd| _ d S )Nz(Authorization failed for private channelr   )r   r   r	   r	   r
   r      r   zAuthorizationError.__init__c                 C   s   | j S r   r   r   r	   r	   r
   r      s   zAuthorizationError.__str__r   )r   r   r   r   r   r   r   r   r	   r	   r	   r
   r      s    r   N)typingr   	Exceptionr   r   r	   r	   r	   r
   <module>   s    