summaryrefslogtreecommitdiff
path: root/src/main/kotlin/MsizeValueTooBigException.kt
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-07 19:55:13 +0200
committerEdoardo La Greca2025-08-07 19:55:13 +0200
commit98e568c89fb5e8f5a3c118382af2a73119ad120d (patch)
tree415724e7589c898ddf36ae42ba7976004fae2981 /src/main/kotlin/MsizeValueTooBigException.kt
parent62db47bb6a6b2dbdff05d03a57c24cdf9e77d16c (diff)
add MsizeValueTooBigException and UnknownVersionException
Diffstat (limited to 'src/main/kotlin/MsizeValueTooBigException.kt')
-rw-r--r--src/main/kotlin/MsizeValueTooBigException.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/kotlin/MsizeValueTooBigException.kt b/src/main/kotlin/MsizeValueTooBigException.kt
new file mode 100644
index 0000000..873258b
--- /dev/null
+++ b/src/main/kotlin/MsizeValueTooBigException.kt
@@ -0,0 +1,8 @@
+/**
+ * This exception is thrown when the `msize` value sent by the server is bigger than that sent by the client during the
+ * version transaction.
+ *
+ * @param maxClientValue The value requested by the client.
+ * @param receivedValue The value sent by the server.
+ */
+class MsizeValueTooBigException(val maxClientValue: UInt, val receivedValue: UInt) : Exception("Msize value too big: $receivedValue > $maxClientValue") \ No newline at end of file