Skip to content

Commit e0844d1

Browse files
authored
Added EntityNotExistsError where missing (#224)
1 parent 7f6b590 commit e0844d1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/main/java/com/uber/cadence/serviceclient/WorkflowServiceTChannel.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,9 @@ private StartWorkflowExecutionResponse startWorkflowExecution(
743743
if (result.isSetLimitExceededError()) {
744744
throw result.getLimitExceededError();
745745
}
746+
if (result.isSetEntityNotExistError()) {
747+
throw result.getEntityNotExistError();
748+
}
746749
throw new TException("StartWorkflowExecution failed with unknown error:" + result);
747750
} finally {
748751
if (response != null) {
@@ -785,6 +788,9 @@ private GetWorkflowExecutionHistoryResponse getWorkflowExecutionHistory(
785788
if (result.isSetServiceBusyError()) {
786789
throw result.getServiceBusyError();
787790
}
791+
if (result.isSetEntityNotExistError()) {
792+
throw result.getEntityNotExistError();
793+
}
788794
throw new TException("GetWorkflowExecutionHistory failed with unknown error:" + result);
789795
} finally {
790796
if (response != null) {
@@ -830,6 +836,9 @@ private PollForDecisionTaskResponse pollForDecisionTask(PollForDecisionTaskReque
830836
if (result.isSetLimitExceededError()) {
831837
throw result.getLimitExceededError();
832838
}
839+
if (result.isSetEntityNotExistError()) {
840+
throw result.getEntityNotExistError();
841+
}
833842
throw new TException("PollForDecisionTask failed with unknown error:" + result);
834843
} finally {
835844
if (response != null) {
@@ -876,6 +885,9 @@ private RespondDecisionTaskCompletedResponse respondDecisionTaskCompleted(
876885
if (result.isSetLimitExceededError()) {
877886
throw result.getLimitExceededError();
878887
}
888+
if (result.isSetEntityNotExistError()) {
889+
throw result.getEntityNotExistError();
890+
}
879891
throw new TException("RespondDecisionTaskCompleted failed with unknown error:" + result);
880892
} finally {
881893
if (response != null) {
@@ -923,6 +935,9 @@ private void respondDecisionTaskFailed(RespondDecisionTaskFailedRequest failedRe
923935
if (result.isSetLimitExceededError()) {
924936
throw result.getLimitExceededError();
925937
}
938+
if (result.isSetEntityNotExistError()) {
939+
throw result.getEntityNotExistError();
940+
}
926941
throw new TException("RespondDecisionTaskFailed failed with unknown error:" + result);
927942
} finally {
928943
if (response != null) {
@@ -962,6 +977,9 @@ private PollForActivityTaskResponse pollForActivityTask(PollForActivityTaskReque
962977
if (result.isSetServiceBusyError()) {
963978
throw result.getServiceBusyError();
964979
}
980+
if (result.isSetEntityNotExistError()) {
981+
throw result.getEntityNotExistError();
982+
}
965983
if (result.isSetDomainNotActiveError()) {
966984
throw result.getDomainNotActiveError();
967985
}

0 commit comments

Comments
 (0)