<s> class PriceError ( Exception ) : <EOL> pass <EOL> class PriceComponentOverflow ( PriceError ) : <EOL> def __init__ ( self , component ) : <EOL> message = "<STR_LIT>" % component <EOL> super ( PriceComponentOverflow , self ) . __init__ ( message ) <EOL> self . component = component <EOL> class CurrencyNotAvailable ( PriceError ) : <EOL> def __init__ ( self , currency ) : <EOL> message = "<STR_LIT>" % currency <EOL> super ( CurrencyNotAvailable , self ) . __init__ ( message ) <EOL> self . currency = currency <EOL> class CurrencyMismatch ( PriceError ) : <EOL> def __init__ ( self , currency , other ) : <EOL> message = "<STR_LIT>" % ( currency , other ) <EOL> super ( CurrencyMismatch , self ) . __init__ ( message ) <EOL> self . currencies = [ currency , other ] </s>
