Exception hierarchy for economy

This commit is contained in:
Twentysix 2016-06-23 23:27:24 +02:00
parent fd89c6870d
commit 1d44d47f26

View File

@ -23,19 +23,22 @@ slot_payouts = """Slot machine payouts:
Three symbols: +500
Two symbols: Bet * 2"""
class AccountAlreadyExists(Exception):
class BankError(Exception):
pass
class NoAccount(Exception):
class AccountAlreadyExists(BankError):
pass
class InsufficientBalance(Exception):
class NoAccount(BankError):
pass
class NegativeValue(Exception):
class InsufficientBalance(BankError):
pass
class SameSenderAndReceiver(Exception):
class NegativeValue(BankError):
pass
class SameSenderAndReceiver(BankError):
pass
class Bank: