-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.py
More file actions
31 lines (24 loc) · 870 Bytes
/
Copy patherror.py
File metadata and controls
31 lines (24 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import datetime
class DiscordCommandException (Exception):
def __init__(self, *args):
super().__init__(*args)
class InvalidDiscordParameter (DiscordCommandException):
def __init__(self, *args):
super().__init__(*args)
class InvalidPermissions (DiscordCommandException):
def __init__(self, *args):
super().__init__(*args)
class MaxCommandUses (DiscordCommandException):
def __init__(self, *args):
super().__init__(*args)
class NotInPokerGame (Exception):
def __init__(self, *args):
super().__init__(args)
class NotPokerGameHost (Exception):
def __init__(self, *args):
super().__init__(args)
def error_log(e):
print(e)
error = open("./config/error.txt", "a")
error.write("\n\n--------------" + str(datetime.datetime.now()) + "--------------\n\n" + str(e))
error.close()