View file File name : transaction_sr.cpython-36.opt-1.pyc Content :3 ��faf � @ s� d dl mZ d dl mZ d dl mZ d dlZd dlZd dlmZ d dlZ d dl Z d Zd Zdeef Z G dd� de jj�ZG d d � d e jj�ZG dd� de�Zd d� Zdd� ZG dd� de�ZdS )� )�absolute_import)�print_function)�unicode_literalsN)�_z%s.%sc s e Zd Z� fdd�Z� ZS )�TransactionErrorc s t t| �j|� d S )N)�superr �__init__)�self�msg)� __class__� �$/usr/lib/python3.6/transaction_sr.pyr / s zTransactionError.__init__)�__name__� __module__�__qualname__r � __classcell__r r )r r r . s r c s e Zd Z� fdd�Z� ZS )�TransactionReplayErrorc sv || _ t|ttf�r|| _n|g| _|r:td�j|d�}ntd�}x| jD ]}|dt|� 7 }qJW tt | �j |� dS )z� :param filename: The name of the transaction file being replayed :param errors: a list of error classes or a string with an error description zWThe following problems occurred while replaying the transaction from file "{filename}":)�filenamez<The following problems occurred while running a transaction:z N)r � isinstance�list�tuple�errorsr �format�strr r r )r r r r �error)r r r r 4 s zTransactionReplayError.__init__)r r r r r r r )r r r 3 s r c s e Zd Z� fdd�Z� ZS )�#IncompatibleTransactionVersionErrorc s t t| �j||� d S )N)r r r )r r r )r r r r M s z,IncompatibleTransactionVersionError.__init__)r r r r r r r )r r r L s r c "