Skip to content

Commit

Permalink
Prefix some errors with rule identifiers (#1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
cretz authored Feb 1, 2024
1 parent 4c1bf9f commit 72ebff1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class PotentialDeadlockException extends RuntimeException {
PotentialDeadlockException(
String threadName, WorkflowThreadContext workflowThreadContext, long detectionTimestamp) {
super(
"Potential deadlock detected. Workflow thread \""
"[TMPRL1101] Potential deadlock detected. Workflow thread \""
+ threadName
+ "\" didn't yield control for over a second.");
this.workflowThreadContext = workflowThreadContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
*/
public class NonDeterministicException extends IllegalStateException {
public NonDeterministicException(String message, Throwable cause) {
super(message, cause);
super("[TMPRL1100] " + message, cause);
}

public NonDeterministicException(String message) {
super(message);
super("[TMPRL1100] " + message);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,8 @@ protected void buildWorkflow(AsyncWorkflowBuilder<Void> builder) {
e.getCause()
.getCause()
.getMessage()
.startsWith("getVersion call before the existing version marker event."));
.startsWith(
"[TMPRL1100] getVersion call before the existing version marker event."));
}
}
}
Expand Down

0 comments on commit 72ebff1

Please sign in to comment.