Skip to content

Commit 72ebff1

Browse files
authored
Prefix some errors with rule identifiers (#1975)
1 parent 4c1bf9f commit 72ebff1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

temporal-sdk/src/main/java/io/temporal/internal/sync/PotentialDeadlockException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class PotentialDeadlockException extends RuntimeException {
5050
PotentialDeadlockException(
5151
String threadName, WorkflowThreadContext workflowThreadContext, long detectionTimestamp) {
5252
super(
53-
"Potential deadlock detected. Workflow thread \""
53+
"[TMPRL1101] Potential deadlock detected. Workflow thread \""
5454
+ threadName
5555
+ "\" didn't yield control for over a second.");
5656
this.workflowThreadContext = workflowThreadContext;

temporal-sdk/src/main/java/io/temporal/worker/NonDeterministicException.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
*/
3333
public class NonDeterministicException extends IllegalStateException {
3434
public NonDeterministicException(String message, Throwable cause) {
35-
super(message, cause);
35+
super("[TMPRL1100] " + message, cause);
3636
}
3737

3838
public NonDeterministicException(String message) {
39-
super(message);
39+
super("[TMPRL1100] " + message);
4040
}
4141
}

temporal-sdk/src/test/java/io/temporal/internal/statemachines/VersionStateMachineTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,8 @@ protected void buildWorkflow(AsyncWorkflowBuilder<Void> builder) {
13151315
e.getCause()
13161316
.getCause()
13171317
.getMessage()
1318-
.startsWith("getVersion call before the existing version marker event."));
1318+
.startsWith(
1319+
"[TMPRL1100] getVersion call before the existing version marker event."));
13191320
}
13201321
}
13211322
}

0 commit comments

Comments
 (0)