File: //lib/python3.6/site-packages/dnf/__pycache__/transaction_sr.cpython-36.pyc
3
gaf @ 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 jjZG d d
d
e jjZG dd deZd
d Zdd ZG dd deZdS ) )absolute_import)print_function)unicode_literalsN)_z%s.%sc s e Zd Z fddZ ZS )TransactionErrorc s t t| j| d S )N)superr __init__)selfmsg) __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 fddZ ZS )TransactionReplayErrorc sv || _ t|ttfr|| _n|g| _|r:tdj|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
isinstancelisttupleerrorsr formatstrr 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 fddZ 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 "