mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
Exception hierarchy for economy
This commit is contained in:
parent
fd89c6870d
commit
1d44d47f26
@ -23,19 +23,22 @@ slot_payouts = """Slot machine payouts:
|
|||||||
Three symbols: +500
|
Three symbols: +500
|
||||||
Two symbols: Bet * 2"""
|
Two symbols: Bet * 2"""
|
||||||
|
|
||||||
class AccountAlreadyExists(Exception):
|
class BankError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class NoAccount(Exception):
|
class AccountAlreadyExists(BankError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class InsufficientBalance(Exception):
|
class NoAccount(BankError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class NegativeValue(Exception):
|
class InsufficientBalance(BankError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class SameSenderAndReceiver(Exception):
|
class NegativeValue(BankError):
|
||||||
|
pass
|
||||||
|
|
||||||
|
class SameSenderAndReceiver(BankError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class Bank:
|
class Bank:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user