fj 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 ZdZddddddedededed ee d df fdZd efdZ 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)flagextraerrnocontextmessager r r r returnc t | d| _ || _ || _ || _ || _ || _ d S )Nr )super__init__statusreason 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<