[grpc-kotlin] why cast to status exception when not status.isOk ?

73 views
Skip to first unread message

최상용

unread,
Jul 9, 2022, 4:22:47 AM7/9/22
to grpc.io
why cast to status exception when not status.isOk ?
io.grpc.kotlin.ClientCalls 295 line.
Should you tell me reason that cast StatusException not StatusRuntimeException.
just curious

grpc_kotlin_question.png

Louis Wasserman

unread,
Jul 20, 2022, 2:44:31 PM7/20/22
to grpc.io
Since Kotlin doesn't have any distinction between checked and runtime exceptions, there's no reason to use StatusRuntimeException.
Reply all
Reply to author
Forward
0 new messages