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() }