aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-server-javalin/src/main/kotlin/pl/treksoft/kvision/remote
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-modules/kvision-server-javalin/src/main/kotlin/pl/treksoft/kvision/remote')
-rw-r--r--kvision-modules/kvision-server-javalin/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt14
1 files changed, 7 insertions, 7 deletions
diff --git a/kvision-modules/kvision-server-javalin/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-javalin/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt
index 5cbd3495..ffb2936b 100644
--- a/kvision-modules/kvision-server-javalin/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt
+++ b/kvision-modules/kvision-server-javalin/src/main/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt
@@ -144,7 +144,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass:
result = mapper.writeValueAsString(result)
)
} catch (e: Exception) {
- if (!(e is ServiceException)) LOG.error(e.message, e)
+ if (e !is ServiceException) LOG.error(e.message, e)
JsonRpcResponse(
id = jsonRpcRequest.id, error = e.message ?: "Error",
exceptionType = e.javaClass.canonicalName
@@ -184,7 +184,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass:
result = mapper.writeValueAsString(result)
)
} catch (e: Exception) {
- if (!(e is ServiceException)) LOG.error(e.message, e)
+ if (e !is ServiceException) LOG.error(e.message, e)
JsonRpcResponse(
id = jsonRpcRequest.id, error = e.message ?: "Error",
exceptionType = e.javaClass.canonicalName
@@ -228,7 +228,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass:
result = mapper.writeValueAsString(result)
)
} catch (e: Exception) {
- if (!(e is ServiceException)) LOG.error(e.message, e)
+ if (e !is ServiceException) LOG.error(e.message, e)
JsonRpcResponse(
id = jsonRpcRequest.id, error = e.message ?: "Error",
exceptionType = e.javaClass.canonicalName
@@ -274,7 +274,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass:
result = mapper.writeValueAsString(result)
)
} catch (e: Exception) {
- if (!(e is ServiceException)) LOG.error(e.message, e)
+ if (e !is ServiceException) LOG.error(e.message, e)
JsonRpcResponse(
id = jsonRpcRequest.id, error = e.message ?: "Error",
exceptionType = e.javaClass.canonicalName
@@ -321,7 +321,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass:
result = mapper.writeValueAsString(result)
)
} catch (e: Exception) {
- if (!(e is ServiceException)) LOG.error(e.message, e)
+ if (e !is ServiceException) LOG.error(e.message, e)
JsonRpcResponse(
id = jsonRpcRequest.id, error = e.message ?: "Error",
exceptionType = e.javaClass.canonicalName
@@ -370,7 +370,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass:
result = mapper.writeValueAsString(result)
)
} catch (e: Exception) {
- if (!(e is ServiceException)) LOG.error(e.message, e)
+ if (e !is ServiceException) LOG.error(e.message, e)
JsonRpcResponse(
id = jsonRpcRequest.id, error = e.message ?: "Error",
exceptionType = e.javaClass.canonicalName
@@ -494,7 +494,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass:
result = mapper.writeValueAsString(result)
)
} catch (e: Exception) {
- if (!(e is ServiceException)) LOG.error(e.message, e)
+ if (e !is ServiceException) LOG.error(e.message, e)
JsonRpcResponse(
id = jsonRpcRequest.id, error = e.message ?: "Error",
exceptionType = e.javaClass.canonicalName