@@ -658,11 +658,15 @@ public DescribeWorkflowExecutionResponse DescribeWorkflowExecution(
658
658
public DescribeTaskListResponse DescribeTaskList (DescribeTaskListRequest request )
659
659
throws BadRequestError , EntityNotExistsError , LimitExceededError , ServiceBusyError ,
660
660
ClientVersionNotSupportedError , TException {
661
- com .uber .cadence .api .v1 .DescribeTaskListResponse response =
662
- grpcServiceStubs
663
- .workflowBlockingStub ()
664
- .describeTaskList (RequestMapper .describeTaskListRequest (request ));
665
- return ResponseMapper .describeTaskListResponse (response );
661
+ try {
662
+ com .uber .cadence .api .v1 .DescribeTaskListResponse response =
663
+ grpcServiceStubs
664
+ .workflowBlockingStub ()
665
+ .describeTaskList (RequestMapper .describeTaskListRequest (request ));
666
+ return ResponseMapper .describeTaskListResponse (response );
667
+ } catch (StatusRuntimeException e ) {
668
+ throw ErrorMapper .Error (e );
669
+ }
666
670
}
667
671
668
672
@ Override
@@ -684,11 +688,15 @@ public ListTaskListPartitionsResponse ListTaskListPartitions(
684
688
ListTaskListPartitionsRequest request )
685
689
throws BadRequestError , EntityNotExistsError , LimitExceededError , ServiceBusyError ,
686
690
TException {
687
- com .uber .cadence .api .v1 .ListTaskListPartitionsResponse response =
688
- grpcServiceStubs
689
- .workflowBlockingStub ()
690
- .listTaskListPartitions (RequestMapper .listTaskListPartitionsRequest (request ));
691
- return ResponseMapper .listTaskListPartitionsResponse (response );
691
+ try {
692
+ com .uber .cadence .api .v1 .ListTaskListPartitionsResponse response =
693
+ grpcServiceStubs
694
+ .workflowBlockingStub ()
695
+ .listTaskListPartitions (RequestMapper .listTaskListPartitionsRequest (request ));
696
+ return ResponseMapper .listTaskListPartitionsResponse (response );
697
+ } catch (StatusRuntimeException e ) {
698
+ throw ErrorMapper .Error (e );
699
+ }
692
700
}
693
701
694
702
@ Override
0 commit comments