File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/main/java/com/uber/cadence/internal/compatibility/thrift Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 24
24
import com .uber .cadence .FeatureNotEnabledError ;
25
25
import com .uber .cadence .InternalDataInconsistencyError ;
26
26
import com .uber .cadence .InternalServiceError ;
27
+ import com .uber .cadence .LimitExceededError ;
28
+ import com .uber .cadence .ServiceBusyError ;
27
29
import com .uber .cadence .WorkflowExecutionAlreadyCompletedError ;
28
30
import com .uber .cadence .WorkflowExecutionAlreadyStartedError ;
29
31
import io .grpc .Metadata ;
@@ -77,6 +79,14 @@ public static TException Error(StatusRuntimeException ex) {
77
79
return e ;
78
80
}
79
81
}
82
+ case RESOURCE_EXHAUSTED :
83
+ switch (details ) {
84
+ case "LimitExceededError" :
85
+ return new LimitExceededError (ex .getMessage ());
86
+ case "ServiceBusyError" :
87
+ return new ServiceBusyError (ex .getMessage ());
88
+ }
89
+
80
90
default :
81
91
// If error does not match anything, return raw grpc status error
82
92
// There are some code that casts error to grpc status to check for deadline exceeded status
You can’t perform that action at this time.
0 commit comments