From 74c8bdde717e511081ac622eae6ff3feacfc1356 Mon Sep 17 00:00:00 2001 From: sergeych Date: Fri, 7 Mar 2025 03:00:58 +0300 Subject: [PATCH] v.0.6.3 stable --- build.gradle.kts | 2 +- .../kotlin/net/sergeych/kiloparsec/ExceptionWithCode.kt | 4 ++++ .../kotlin/net/sergeych/kiloparsec/KiloInterface.kt | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index c0651e0..16c3d1b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,7 +16,7 @@ plugins { } group = "net.sergeych" -version = "0.6.3-SNAPSHOT" +version = "0.6.3" repositories { mavenCentral() diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/ExceptionWithCode.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/ExceptionWithCode.kt index 29388c2..03226d1 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/ExceptionWithCode.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/ExceptionWithCode.kt @@ -10,6 +10,10 @@ package net.sergeych.kiloparsec +/** + * External errors wich needs to be encoded with a specific code + * should implement this interface so it will be serialized properly. + */ interface ExceptionWithCode { val code: String val message: String? diff --git a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloInterface.kt b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloInterface.kt index f43593d..6f4352a 100644 --- a/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloInterface.kt +++ b/src/commonMain/kotlin/net/sergeych/kiloparsec/KiloInterface.kt @@ -40,7 +40,7 @@ open class KiloInterface : LocalInterface>() { registerError { RemoteInterface.UnknownCommand(it) } registerError { RemoteInterface.InternalError(it) } registerError { RemoteInterface.ClosedException(it) } -// registerError { RemoteInterface.SecurityException(it) } + registerError { RemoteInterface.SecurityException(it) } registerError { RemoteInterface.InvalidDataException(it) } registerError { RemoteInterface.RemoteException(it) } registerError { IllegalStateException() }