Skip to content

Commit e927f6d

Browse files
authored
handle proto unknown status response code (#696)
1 parent 67f90fb commit e927f6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/uber/cadence/internal/compatibility/thrift/ErrorMapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ public static TException Error(StatusRuntimeException ex) {
8686
case "ServiceBusyError":
8787
return new ServiceBusyError(ex.getMessage());
8888
}
89-
89+
case UNKNOWN:
90+
return new TException(ex);
9091
default:
9192
// If error does not match anything, return raw grpc status error
9293
// There are some code that casts error to grpc status to check for deadline exceeded status

0 commit comments

Comments
 (0)