diff options
author | Edoardo La Greca | 2025-08-07 19:58:20 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-08-07 19:58:20 +0200 |
commit | aba9d0e6b869eee8e73f9f570394122bca57a1a9 (patch) | |
tree | 396316169a90631b9c0b75fc7eba374364882202 | |
parent | 98e568c89fb5e8f5a3c118382af2a73119ad120d (diff) |
move FailedAuthenticationException to except package
-rw-r--r-- | src/main/kotlin/Authenticator.kt | 4 | ||||
-rw-r--r-- | src/main/kotlin/except/FailedAuthenticationException.kt (renamed from src/main/kotlin/FailedAuthenticationException.kt) | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/kotlin/Authenticator.kt b/src/main/kotlin/Authenticator.kt index a146840..47747f3 100644 --- a/src/main/kotlin/Authenticator.kt +++ b/src/main/kotlin/Authenticator.kt @@ -11,8 +11,8 @@ interface Authenticator { * @param password The confirmation of the user's authenticity. * @param readFun A function to read incoming data from the underlying connection. * @param writeFun A function to write outgoing data into the underlying connection. - * @throws FailedAuthenticationException if the authentication could not be performed. A human-readable reason for - * the failure can be provided if necessary. + * @throws except.FailedAuthenticationException if the authentication could not be performed. A human-readable + * reason for the failure can be provided if necessary. */ fun authenticate(username: String, password: String, readFun: () -> Array<UByte>, writeFun: (b: Array<UByte>) -> Unit) }
\ No newline at end of file diff --git a/src/main/kotlin/FailedAuthenticationException.kt b/src/main/kotlin/except/FailedAuthenticationException.kt index dcff7bd..94935c3 100644 --- a/src/main/kotlin/FailedAuthenticationException.kt +++ b/src/main/kotlin/except/FailedAuthenticationException.kt @@ -1,3 +1,5 @@ +package except + /** * The authentication with the remote part failed. * |