Title: FailureDetails.IsCausedBy throws · Issue #239 · microsoft/durabletask-java · GitHub
Open Graph Title: FailureDetails.IsCausedBy throws · Issue #239 · microsoft/durabletask-java
X Title: FailureDetails.IsCausedBy throws · Issue #239 · microsoft/durabletask-java
Description: When an activity function throws an exception, and it is caught by a custom retry handler in an orchestrator, the retryContext allows accessing the FailureDetails for analysis of the failure. However, attempting to use the FailureDetails...
Open Graph Description: When an activity function throws an exception, and it is caught by a custom retry handler in an orchestrator, the retryContext allows accessing the FailureDetails for analysis of the failure. Howev...
X Description: When an activity function throws an exception, and it is caught by a custom retry handler in an orchestrator, the retryContext allows accessing the FailureDetails for analysis of the failure. Howev...
Opengraph URL: https://github.com/microsoft/durabletask-java/issues/239
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FailureDetails.IsCausedBy throws","articleBody":"When an activity function throws an exception, and it is caught by a custom retry handler in an orchestrator, the retryContext allows accessing the FailureDetails for analysis of the failure. However, attempting to use the FailureDetails.isCausedBy() method will never succeed, as it internally is implemented using Class.forName() which requires the fully-qualified exception class name but FailureDetails does not have this information serialized, just the simple exception class name. \n\nRepro: \n```java\n @FunctionName(\"CustomRetryActivityFunction\")\n public String customRetryActivityFunction(\n @DurableOrchestrationTrigger(name = \"ctx\") TaskOrchestrationContext ctx) {\n TaskOptions options = new TaskOptions(retryContext -> {\n FailureDetails lastFailure = retryContext.getLastFailure();\n if (lastFailure != null\n && lastFailure.getErrorType().equals(\"OverflowException\")\n // This line should work, but doesn't\n // && lastFailure.isCausedBy(InvalidOperationException.class)\n && retryContext.getLastAttemptNumber() \u003c 3) {\n return true;\n }\n return false;\n });\n return ctx.callActivity(\"RaiseComplexException\", ctx.getInstanceId(), options, String.class).await();\n }\n``","author":{"url":"https://github.com/andystaples","@type":"Person","name":"andystaples"},"datePublished":"2025-08-27T17:04:59Z","url":"https://github.com/microsoft/durabletask-java/issues/239"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:62c22ef4-d824-71ae-0be7-888e83689aae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABAA:A412F:15519F:1BC4A3:6AFE356C |
| html-safe-nonce | e8f2cdca155f386df5a137ba78f6988b4f83d6112370cf072b1202c30eb5ad06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkFBOkE0MTJGOjE1NTE5RjoxQkM0QTM6NkFGRTM1NkMiLCJ2aXNpdG9yX2lkIjoiMTYzNTM1NzQxMDE4NjkwMDg0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ea68ce4481fc30dd870779c3851cc7416601f22c5b9b02b5b07e3390e0d93b8d |
| hovercard-subject-tag | issue:3360157232 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/durabletask-java/239/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5ac76ed0dc55826e799b745226533a5917e900066473812dee5aa10a282f799c/microsoft/durabletask-java/issues/239 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5ac76ed0dc55826e799b745226533a5917e900066473812dee5aa10a282f799c/microsoft/durabletask-java/issues/239 |
| og:image:alt | When an activity function throws an exception, and it is caught by a custom retry handler in an orchestrator, the retryContext allows accessing the FailureDetails for analysis of the failure. Howev... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andystaples |
| hostname | github.com |
| expected-hostname | github.com |
| None | 260deedcf4630abb0a6b4aaa02fd2af70eab44d2529712694ceae59ca131b02e |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/durabletask-java git https://github.com/microsoft/durabletask-java.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 452823832 |
| octolytics-dimension-repository_nwo | microsoft/durabletask-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 452823832 |
| octolytics-dimension-repository_network_root_nwo | microsoft/durabletask-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8b413ea7a9b010f4f2ebbb923b041b0d6091dd94 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width