File: //lib/python3/dist-packages/boto/beanstalk/__pycache__/exception.cpython-310.pyc
o
    ckF[S  �                   @   s�  d dl Z d dlmZ d dlmZ dd� ZG dd� de�ZG dd	� d	e�ZG d
d� de�ZG dd
� d
e�Z	G dd� de�Z
G dd� de�ZG dd� de�ZG dd� de�Z
G dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG d d!� d!e�ZG d"d#� d#e�ZG d$d%� d%e�ZG d&d'� d'e�ZG d(d)� d)e�ZG d*d+� d+e�ZG d,d-� d-e�ZG d.d/� d/e�ZG d0d1� d1e�ZG d2d3� d3e�ZG d4d5� d5e�ZG d6d7� d7e�ZG d8d9� d9e�ZG d:d;� d;e�Z dS )<�    N)�json)�BotoServerErrorc                 C   sL   | j }|�d�r
|�d�}z
ttjt |�| �}W |S  ty%   |  Y S w )N�	Exception)�code�endswith�rstrip�getattr�sys�modules�__name__�AttributeError)�er   �simple_e� r   �:/usr/lib/python3/dist-packages/boto/beanstalk/exception.py�simple   s   
��r   c                       s,   e Zd Z� fdd�Zdd� Zdd� Z�  ZS )�SimpleExceptionc                    s&