Skip to content

Commit 62a1653

Browse files
authored
add describe workflow grpc API (#705)
1 parent 6d9c640 commit 62a1653

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/main/java/com/uber/cadence/internal/compatibility/Thrift2ProtoAdapter.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -646,12 +646,16 @@ public DescribeWorkflowExecutionResponse DescribeWorkflowExecution(
646646
DescribeWorkflowExecutionRequest describeRequest)
647647
throws BadRequestError, EntityNotExistsError, LimitExceededError, ServiceBusyError,
648648
ClientVersionNotSupportedError, TException {
649-
com.uber.cadence.api.v1.DescribeWorkflowExecutionResponse response =
650-
grpcServiceStubs
651-
.workflowBlockingStub()
652-
.describeWorkflowExecution(
653-
RequestMapper.describeWorkflowExecutionRequest(describeRequest));
654-
return ResponseMapper.describeWorkflowExecutionResponse(response);
649+
try {
650+
com.uber.cadence.api.v1.DescribeWorkflowExecutionResponse response =
651+
grpcServiceStubs
652+
.workflowBlockingStub()
653+
.describeWorkflowExecution(
654+
RequestMapper.describeWorkflowExecutionRequest(describeRequest));
655+
return ResponseMapper.describeWorkflowExecutionResponse(response);
656+
} catch (StatusRuntimeException e) {
657+
throw ErrorMapper.Error(e);
658+
}
655659
}
656660

657661
@Override

0 commit comments

Comments
 (0)