관리-도구
편집 파일: exceptions.cpython-311.pyc
� b��f� � � � d Z ddlZddlZddlZddlZddlmZ ddlmZ ej d� � Z G d� de� � Z G d� d e � � Z G d � de� � Z G d� d e� � Z G d� de� � Z G d� de � � Z G d� de� � Z G d� de � � Z G d� de � � Z G d� de� � Z G d� de� � ZdS )z/ This module contains custom exception classes � N)�Optional)�gettext� exc_loggerc �` � � e Zd ZdZddddd�dedededed ee d df� fd�Zd efd�Z � xZ S ) � XRayErrorz� X-Ray internal exception class. Adds an 'error' status and stores information about occurred exception. Provides JSON encoded info about occurred exception. �errorN)�flag�extra�errno�context�messager r r r �returnc � �� t � � � |� � d| _ || _ || _ || _ || _ || _ d S )Nr )�super�__init__�status�reason� extra_data� type_flagr r )�selfr r r r r � __class__s ��O/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/internal/exceptions.pyr zXRayError.__init__ sK �� � ������!�!�!��������������� ������ c � � | j dk rd| j d�}n d| j i}| j � | j |d<