summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/Connection.kt2
-rw-r--r--src/main/kotlin/InMessage.kt3
-rw-r--r--src/main/kotlin/ProtocolTranslator.kt2
-rw-r--r--src/main/kotlin/except/InvalidMessageException.kt (renamed from src/main/kotlin/InvalidMessageException.kt)2
4 files changed, 6 insertions, 3 deletions
diff --git a/src/main/kotlin/Connection.kt b/src/main/kotlin/Connection.kt
index a0923e8..9982e76 100644
--- a/src/main/kotlin/Connection.kt
+++ b/src/main/kotlin/Connection.kt
@@ -60,7 +60,7 @@ class Connection(transLay: TransportLayer) : ProtocolTranslator {
* @return A pair of: (1) a nullable string (which can be: `null` if no error occurred, empty if an error occurred
* with no message, or non-empty with the error message) and (2) the optional [InMessage] instance (null if an error
* occurred).
- * @throws InvalidMessageException if the received message is invalid.
+ * @throws except.InvalidMessageException if the received message is invalid.
* @throws RErrorException if the received message is an R-error message.
*/
private fun checkedInMessage(reqTag: UShort): InMessage {
diff --git a/src/main/kotlin/InMessage.kt b/src/main/kotlin/InMessage.kt
index 03f3428..bf76ef9 100644
--- a/src/main/kotlin/InMessage.kt
+++ b/src/main/kotlin/InMessage.kt
@@ -1,3 +1,4 @@
+import except.InvalidMessageException
import java.math.BigInteger
/**
@@ -7,7 +8,7 @@ import java.math.BigInteger
* @param tl The transport layer API.
* @param maxSize The maximum message size negotiated with the remote part.
* @param reqTag The required tag.
- * @throws InvalidMessageException if the message that is currently being read is invalid.
+ * @throws except.InvalidMessageException if the message that is currently being read is invalid.
*/
class InMessage(val tl: TransportLayer, maxSize: UInt, val reqTag: UShort) {
/**
diff --git a/src/main/kotlin/ProtocolTranslator.kt b/src/main/kotlin/ProtocolTranslator.kt
index f7b114f..686e05e 100644
--- a/src/main/kotlin/ProtocolTranslator.kt
+++ b/src/main/kotlin/ProtocolTranslator.kt
@@ -27,7 +27,7 @@ interface ProtocolTranslator {
* @param msize The maximum length, in bytes, that the client will ever generate or expect to receive in a single
* 9P message.
* @param version Should be "9P2000", which is the only defined value.
- * @throws InvalidMessageException if the received message is invalid.
+ * @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 UnknownVersionException if the version negotiation failed.
diff --git a/src/main/kotlin/InvalidMessageException.kt b/src/main/kotlin/except/InvalidMessageException.kt
index 5b29edf..02a3cc4 100644
--- a/src/main/kotlin/InvalidMessageException.kt
+++ b/src/main/kotlin/except/InvalidMessageException.kt
@@ -1,3 +1,5 @@
+package except
+
/**
* The packet that is currently being read is not valid.
*