diff options
author | Edoardo La Greca | 2025-08-07 20:05:46 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-08-07 20:05:46 +0200 |
commit | 86df6e5f503f6675d39377370276d9f09c0043ef (patch) | |
tree | d8b7a6587b987432a408eb47e774d6841979cc7c /src/main/kotlin/except/MsizeValueTooBigException.kt | |
parent | 6f3b6a12d9cebc75ada91fb25a5bab9198a20b07 (diff) |
move MsizeValueTooBigException to except package
Diffstat (limited to 'src/main/kotlin/except/MsizeValueTooBigException.kt')
-rw-r--r-- | src/main/kotlin/except/MsizeValueTooBigException.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/kotlin/except/MsizeValueTooBigException.kt b/src/main/kotlin/except/MsizeValueTooBigException.kt new file mode 100644 index 0000000..f1f6da1 --- /dev/null +++ b/src/main/kotlin/except/MsizeValueTooBigException.kt @@ -0,0 +1,10 @@ +package except + +/** + * 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 |