From 9093a25125395352ea18e70ece05937eafb39f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lise=20Rubio?= Date: Tue, 19 Mar 2024 13:56:01 +0100 Subject: [PATCH] :loud_sound: Add error message --- .../server/src/main/kotlin/BatchExecutionGrpcServiceImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/app-server/server/src/main/kotlin/BatchExecutionGrpcServiceImpl.kt b/modules/app-server/server/src/main/kotlin/BatchExecutionGrpcServiceImpl.kt index 44f904a..58c0a91 100644 --- a/modules/app-server/server/src/main/kotlin/BatchExecutionGrpcServiceImpl.kt +++ b/modules/app-server/server/src/main/kotlin/BatchExecutionGrpcServiceImpl.kt @@ -51,7 +51,7 @@ private fun BatchExecutionApi.BatchExecutionCreationRequest.Type.toDomain(): Typ BatchExecutionApi.BatchExecutionCreationRequest.Type.UNRECOGNIZED -> throw UnrecognizedTypeException } -object UnrecognizedTypeException : IllegalArgumentException("") +object UnrecognizedTypeException : IllegalArgumentException("Given type was not recognized") private fun BatchExecutionApi.BatchExecutionCreationRequest.Origin.toDomain(): Origin = when (this) { BatchExecutionApi.BatchExecutionCreationRequest.Origin.CLIENT -> Origin.CLIENT @@ -60,4 +60,4 @@ private fun BatchExecutionApi.BatchExecutionCreationRequest.Origin.toDomain(): O BatchExecutionApi.BatchExecutionCreationRequest.Origin.UNRECOGNIZED -> throw UnrecognizedOriginException } -object UnrecognizedOriginException: IllegalArgumentException("") \ No newline at end of file +object UnrecognizedOriginException: IllegalArgumentException("Given origin was not recognized") \ No newline at end of file