From e00d101020ac21088e57c85bf0076d350f16e94f Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Thu, 7 Aug 2025 20:22:06 +0200 Subject: change attach to use exceptions instead of error strings --- src/main/kotlin/ProtocolTranslator.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/ProtocolTranslator.kt') 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. -- cgit v1.2.3