diff options
author | Edoardo La Greca | 2025-08-07 20:09:15 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-08-07 20:09:15 +0200 |
commit | eedbc01c3b7f1bfef1ccc341574278e0289879ae (patch) | |
tree | cdb8a457e71cc2783fd4e045ed0e6760f1cfcad8 /src/main | |
parent | 9bf06f0575e2552cf6dfebb057e5b799ead4ea9f (diff) |
move UnknownVersionException to except package
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/kotlin/Connection.kt | 1 | ||||
-rw-r--r-- | src/main/kotlin/ProtocolTranslator.kt | 2 | ||||
-rw-r--r-- | src/main/kotlin/except/UnknownVersionException.kt (renamed from src/main/kotlin/UnknownVersionException.kt) | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/Connection.kt b/src/main/kotlin/Connection.kt index 61cbaae..911cb93 100644 --- a/src/main/kotlin/Connection.kt +++ b/src/main/kotlin/Connection.kt @@ -1,5 +1,6 @@ import except.MsizeValueTooBigException import except.RErrorException +import except.UnknownVersionException import java.io.IOException import java.math.BigInteger diff --git a/src/main/kotlin/ProtocolTranslator.kt b/src/main/kotlin/ProtocolTranslator.kt index ffa5f44..68dde3e 100644 --- a/src/main/kotlin/ProtocolTranslator.kt +++ b/src/main/kotlin/ProtocolTranslator.kt @@ -30,7 +30,7 @@ interface ProtocolTranslator { * @throws except.InvalidMessageException if the received message is invalid. * @throws except.RErrorException if the received message is an R-error message. * @throws except.MsizeValueTooBigException if the received `msize` value is bigger than what the client requested. - * @throws UnknownVersionException if the version negotiation failed. + * @throws except.UnknownVersionException if the version negotiation failed. */ fun version(msize: UInt, version: String) diff --git a/src/main/kotlin/UnknownVersionException.kt b/src/main/kotlin/except/UnknownVersionException.kt index 1f88a73..5023bc5 100644 --- a/src/main/kotlin/UnknownVersionException.kt +++ b/src/main/kotlin/except/UnknownVersionException.kt @@ -1,3 +1,5 @@ +package except + /** * This exception is thrown when the remote server sent either an "unknown" version back during the version negotiation * procedure or a version unknown to this client implementation. |