o
    zsg                     @   s$   G d d de ZG dd de ZdS )c                   @   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   O/var/www/html/minecraft/env/lib/python3.10/site-packages/realtime/exceptions.py__init__   s   
zNotConnectedError.__init__c                 C   s   d| j  dS )NzqA WS connection has not been established. Ensure you call RealtimeClient.connect() before calling RealtimeClient.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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      s    r   N)	Exceptionr   r   r   r   r   r   <module>   s    