summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-07 20:05:46 +0200
committerEdoardo La Greca2025-08-07 20:05:46 +0200
commit86df6e5f503f6675d39377370276d9f09c0043ef (patch)
treed8b7a6587b987432a408eb47e774d6841979cc7c
parent6f3b6a12d9cebc75ada91fb25a5bab9198a20b07 (diff)
move MsizeValueTooBigException to except package
-rw-r--r--src/main/kotlin/Connection.kt1
-rw-r--r--src/main/kotlin/ProtocolTranslator.kt2
-rw-r--r--src/main/kotlin/except/MsizeValueTooBigException.kt (renamed from src/main/kotlin/MsizeValueTooBigException.kt)2
3 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/Connection.kt b/src/main/kotlin/Connection.kt
index 9982e76..4f920b7 100644
--- a/src/main/kotlin/Connection.kt
+++ b/src/main/kotlin/Connection.kt
@@ -1,3 +1,4 @@
+import except.MsizeValueTooBigException
import java.io.IOException
import java.math.BigInteger
diff --git a/src/main/kotlin/ProtocolTranslator.kt b/src/main/kotlin/ProtocolTranslator.kt
index 686e05e..9e5632b 100644
--- a/src/main/kotlin/ProtocolTranslator.kt
+++ b/src/main/kotlin/ProtocolTranslator.kt
@@ -29,7 +29,7 @@ interface ProtocolTranslator {
* @param version Should be "9P2000", which is the only defined value.
* @throws except.InvalidMessageException if the received message is invalid.
* @throws RErrorException if the received message is an R-error message.
- * @throws MsizeValueTooBigException if the received `msize` value is bigger than what the client requested.
+ * @throws except.MsizeValueTooBigException if the received `msize` value is bigger than what the client requested.
* @throws UnknownVersionException if the version negotiation failed.
*/
fun version(msize: UInt, version: String)
diff --git a/src/main/kotlin/MsizeValueTooBigException.kt b/src/main/kotlin/except/MsizeValueTooBigException.kt
index 873258b..f1f6da1 100644
--- a/src/main/kotlin/MsizeValueTooBigException.kt
+++ b/src/main/kotlin/except/MsizeValueTooBigException.kt
@@ -1,3 +1,5 @@
+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.