summaryrefslogtreecommitdiff
path: root/src/main/kotlin/ProtocolTranslator.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/ProtocolTranslator.kt')
-rw-r--r--src/main/kotlin/ProtocolTranslator.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/kotlin/ProtocolTranslator.kt b/src/main/kotlin/ProtocolTranslator.kt
index eb13fc2..1b45252 100644
--- a/src/main/kotlin/ProtocolTranslator.kt
+++ b/src/main/kotlin/ProtocolTranslator.kt
@@ -55,9 +55,10 @@ interface ProtocolTranslator {
* @param afid A FID previously established by an auth message.
* @param uname A user identifier.
* @param aname The desired file tree to access.
- * @return a possible error.
+ * @throws except.InvalidMessageException if the received message is invalid.
+ * @throws except.RErrorException if the received message is an R-error message.
*/
- fun attach(fid: UInt, afid: UInt, uname: String, aname: String): String?
+ fun attach(fid: UInt, afid: UInt, uname: String, aname: String)
/**
* Descend a directory hierarchy.