summaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-07 20:07:38 +0200
committerEdoardo La Greca2025-08-07 20:07:38 +0200
commit9bf06f0575e2552cf6dfebb057e5b799ead4ea9f (patch)
tree3da73204f13dbb73f8464a545043d039f5fd146c /src/main/kotlin
parent86df6e5f503f6675d39377370276d9f09c0043ef (diff)
move RErrorException to except package
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/Connection.kt3
-rw-r--r--src/main/kotlin/ProtocolTranslator.kt2
-rw-r--r--src/main/kotlin/except/RErrorException.kt (renamed from src/main/kotlin/RErrorException.kt)2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/main/kotlin/Connection.kt b/src/main/kotlin/Connection.kt
index 4f920b7..61cbaae 100644
--- a/src/main/kotlin/Connection.kt
+++ b/src/main/kotlin/Connection.kt
@@ -1,4 +1,5 @@
import except.MsizeValueTooBigException
+import except.RErrorException
import java.io.IOException
import java.math.BigInteger
@@ -62,7 +63,7 @@ class Connection(transLay: TransportLayer) : ProtocolTranslator {
* with no message, or non-empty with the error message) and (2) the optional [InMessage] instance (null if an error
* occurred).
* @throws except.InvalidMessageException if the received message is invalid.
- * @throws RErrorException if the received message is an R-error message.
+ * @throws except.RErrorException if the received message is an R-error message.
*/
private fun checkedInMessage(reqTag: UShort): InMessage {
val imsg = InMessage(this.tl, this.maxSize, reqTag)
diff --git a/src/main/kotlin/ProtocolTranslator.kt b/src/main/kotlin/ProtocolTranslator.kt
index 9e5632b..ffa5f44 100644
--- a/src/main/kotlin/ProtocolTranslator.kt
+++ b/src/main/kotlin/ProtocolTranslator.kt
@@ -28,7 +28,7 @@ interface ProtocolTranslator {
* 9P message.
* @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 except.RErrorException if the received message is an R-error message.
* @throws except.MsizeValueTooBigException if the received `msize` value is bigger than what the client requested.
* @throws UnknownVersionException if the version negotiation failed.
*/
diff --git a/src/main/kotlin/RErrorException.kt b/src/main/kotlin/except/RErrorException.kt
index 56fdebc..c15cbc2 100644
--- a/src/main/kotlin/RErrorException.kt
+++ b/src/main/kotlin/except/RErrorException.kt
@@ -1,3 +1,5 @@
+package except
+
/**
* This exception represents an error sent by the remote server as an R-error message.
*