You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Java SDK, thread yielding/release from user's workflow code works based on throwing DestroyWorkflowThreadError on Temporal library calls to break out of user's workflow code execution. It means user workflow code must not catch DestroyWorkflowThreadError/Error/Throwable. This is a crucial fact but is missing in documentation.
Even though common pattern for devs is to catch just Exception:
try {
...
} catch (Exception e) {
...
}
some prefer to catch Throwable, which would break Temporal.
Your recommended content
The text was updated successfully, but these errors were encountered:
Brief description
In Java SDK, thread yielding/release from user's workflow code works based on throwing DestroyWorkflowThreadError on Temporal library calls to break out of user's workflow code execution. It means user workflow code must not catch DestroyWorkflowThreadError/Error/Throwable. This is a crucial fact but is missing in documentation.
Even though common pattern for devs is to catch just Exception:
some prefer to catch Throwable, which would break Temporal.
Your recommended content
The text was updated successfully, but these errors were encountered: