File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
src/main/java/com/uber/cadence/internal/compatibility Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -671,11 +671,15 @@ public DescribeTaskListResponse DescribeTaskList(DescribeTaskListRequest request
671
671
672
672
@ Override
673
673
public ClusterInfo GetClusterInfo () throws InternalServiceError , ServiceBusyError , TException {
674
- com .uber .cadence .api .v1 .GetClusterInfoResponse response =
675
- grpcServiceStubs
676
- .workflowBlockingStub ()
677
- .getClusterInfo (com .uber .cadence .api .v1 .GetClusterInfoRequest .newBuilder ().build ());
678
- return ResponseMapper .getClusterInfoResponse (response );
674
+ try {
675
+ com .uber .cadence .api .v1 .GetClusterInfoResponse response =
676
+ grpcServiceStubs
677
+ .workflowBlockingStub ()
678
+ .getClusterInfo (com .uber .cadence .api .v1 .GetClusterInfoRequest .newBuilder ().build ());
679
+ return ResponseMapper .getClusterInfoResponse (response );
680
+ } catch (StatusRuntimeException e ) {
681
+ throw ErrorMapper .Error (e );
682
+ }
679
683
}
680
684
681
685
@ Override
You can’t perform that action at this time.
0 commit comments