summaryrefslogtreecommitdiff
path: root/src/main/kotlin/except
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-07 20:01:21 +0200
committerEdoardo La Greca2025-08-07 20:01:21 +0200
commit6f3b6a12d9cebc75ada91fb25a5bab9198a20b07 (patch)
treeb25548e4072c50ab042a240245a78f4c6c36343b /src/main/kotlin/except
parentaba9d0e6b869eee8e73f9f570394122bca57a1a9 (diff)
move InvalidMessageException to except package
Diffstat (limited to 'src/main/kotlin/except')
-rw-r--r--src/main/kotlin/except/InvalidMessageException.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/kotlin/except/InvalidMessageException.kt b/src/main/kotlin/except/InvalidMessageException.kt
new file mode 100644
index 0000000..02a3cc4
--- /dev/null
+++ b/src/main/kotlin/except/InvalidMessageException.kt
@@ -0,0 +1,8 @@
+package except
+
+/**
+ * The packet that is currently being read is not valid.
+ *
+ * @param reason The reason for which the packet is invalid.
+ */
+class InvalidMessageException(val reason: String) : Exception("Invalid packet: $reason") \ No newline at end of file