Skip to content

Commit

Permalink
🔊 Add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysoun committed Apr 30, 2024
1 parent d5ab782 commit 9093a25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -60,4 +60,4 @@ private fun BatchExecutionApi.BatchExecutionCreationRequest.Origin.toDomain(): O
BatchExecutionApi.BatchExecutionCreationRequest.Origin.UNRECOGNIZED -> throw UnrecognizedOriginException
}

object UnrecognizedOriginException: IllegalArgumentException("")
object UnrecognizedOriginException: IllegalArgumentException("Given origin was not recognized")

0 comments on commit 9093a25

Please sign in to comment.