Mini Shell
3
��\e. � @ s� d dl mZmZmZmZmZmZ d dlZd dlZd dl Z d dl
Z
d dlZd dlZd dl
Z
dd� ZG dd� de�ZG dd� de�ZdS ) � )�MAIN_RESPONSE_DEBUG�MAIN_RESPONSE_SAVE�MAIN_RESPONSE_SHELL�MAIN_RESPONSE_QUIT�DumpInfo�
ExceptionInfoNc C s | dkrt jddd�j | �S dS )N� z
python-mehT)Zfallback)�gettextZtranslation)�x� r �/usr/lib/python3.6/handler.py�<lambda> s r
c @ s e Zd Zddd�Zdd� ZdS )� NoNetworkr c C s t j| � || _d S )N)� Exception�__init__�msg)�selfr r r r r s
zNoNetwork.__init__c C s dS )NzNo network is availabler )r r r r �__str__# s zNoNetwork.__str__N)r )�__name__�
__module__�__qualname__r r r r r r r s
r c @ s� e Zd Zdd� Zdd� Zedd� dd� �Zdd � Zed
d� dd� �Zdd
� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� ZdS )�ExceptionHandlerc C s. || _ || _|| _d| _d| _d| _d| _dS )a� Create a new ExceptionHandler instance. Subclasses of this one may
be created, provided they are careful to provide all the methods
this one does. Instance attributes:
conf -- A filled in Config instance. At least the programName
and programVersion are required.
exnClass -- An instance of ExceptionDump or a subclass of it. This
is required to know how to represent the Python
exception internally.
intfClass-- An instance of AbstractIntf. This is required to know
what UI classes to use.
�
Nr )�conf�exnClass�intf� _exitcode�_exn�exnFile�exnText)r ZconfObjZ intfClassr r r r r '