From d6dbe5de92b0a42f74f18d9d4a590517e27df807 Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Thu, 7 Aug 2025 20:17:19 +0200 Subject: change flush 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 68dde3e..eb13fc2 100644 --- a/src/main/kotlin/ProtocolTranslator.kt +++ b/src/main/kotlin/ProtocolTranslator.kt @@ -43,9 +43,10 @@ interface ProtocolTranslator { * Abort a message. * * @param oldtag The tag of the message that needs to be purged. - * @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 flush(oldtag: UShort): String? + fun flush(oldtag: UShort) /** * Establish a connection. -- cgit v1.2.3