aboutsummaryrefslogtreecommitdiff
path: root/markov/errors.py
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-03-12 18:45:03 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-03-12 18:45:03 +0000
commit228565b70ba3d1015ee85459c508f72ab363be0f (patch)
tree1d6e7b21500a6e073414d1fa0278e96c719c27ff /markov/errors.py
parent529a23180fbcd9ca09ef55a9de2d4faa646aae55 (diff)
downloadaps-cogs-228565b70ba3d1015ee85459c508f72ab363be0f.tar
aps-cogs-228565b70ba3d1015ee85459c508f72ab363be0f.tar.gz
aps-cogs-228565b70ba3d1015ee85459c508f72ab363be0f.zip
markov: reduce code duplication, add command to nuke guild data
This also fixes bugs related to inconsistent handling of per-member and whole-guild generation.
Diffstat (limited to 'markov/errors.py')
-rw-r--r--markov/errors.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/markov/errors.py b/markov/errors.py
index 048aa5b..1af7de8 100644
--- a/markov/errors.py
+++ b/markov/errors.py
@@ -1,2 +1,14 @@
class MarkovGenerationError(Exception):
pass
+
+
+class NoTotalCompletionCountError(MarkovGenerationError):
+ pass
+
+
+class NoNextTokenError(MarkovGenerationError):
+ pass
+
+
+class InvalidCompletionCountError(MarkovGenerationError):
+ pass