o
    aqeS                     @   sh   d Z G dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZdS )z5A Python module for managing any Slack client errors.c                   @      e Zd ZdZdS )SlackClientErrorzBase class for Client errorsN__name__
__module____qualname____doc__ r   r   M/var/www/html/humari/django-venv/lib/python3.10/site-packages/slack/errors.pyr          r   c                   @   r   )BotUserAccessErrorztError raised when an 'xoxb-*' token is
    being used for a Slack API method that only accepts 'xoxp-*' tokens.
    Nr   r   r   r   r	   r      r
   r   c                   @   r   )SlackRequestErrorzLError raised when there's a problem with the request that's being submitted.Nr   r   r   r   r	   r      r
   r   c                       s    e Zd ZdZ fddZ  ZS )SlackApiErrora  Error raised when Slack does not send the expected response.

    Attributes:
        response (SlackResponse): The SlackResponse object containing all of the data sent back from the API.

    Note:
        The message (str) passed into the exception is used when
        a user converts the exception to a str.
        i.e. str(SlackApiError("This text will be sent as a string."))
    c                    s(   | d| }|| _ tt| | d S )Nz
The server responded with: )responsesuperr   __init__)selfmessager   msg	__class__r   r	   r      s   zSlackApiError.__init__)r   r   r   r   r   __classcell__r   r   r   r	   r      s    r   c                   @   r   )SlackClientNotConnectedErrorzcError raised when attempting to send messages over the websocket when the
    connection is closed.Nr   r   r   r   r	   r   $   r
   r   c                   @   r   )SlackObjectFormationErrorz=Error raised when a constructed object is not valid/malformedNr   r   r   r   r	   r   )   r
   r   N)r   	Exceptionr   r   r   r   r   r   r   r   r   r	   <module>   s    