diff options
author | Edoardo La Greca | 2025-08-07 20:22:06 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-08-07 20:22:06 +0200 |
commit | e00d101020ac21088e57c85bf0076d350f16e94f (patch) | |
tree | 0ebf7218c594569b3cd2221f2bc9935227819eea /src/main/kotlin/ProtocolTranslator.kt | |
parent | d6dbe5de92b0a42f74f18d9d4a590517e27df807 (diff) |
change attach to use exceptions instead of error strings
Diffstat (limited to 'src/main/kotlin/ProtocolTranslator.kt')
-rw-r--r-- | src/main/kotlin/ProtocolTranslator.kt | 5 |
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. |