Comments (3)
@GOB-Sinzinger not sure I understand your request. The sample code you shared is indeed an unhandled exception. You throw an exception from your activity, durable captures that and rethrows it in your orchestration. You catch it, but then re-throw via the throw
keyword.
This is the definition of unhandled - your code is letting the exception escape.
from durabletask-dotnet.
@jviau Thanks for your answer.
You're right, I just re-throw the exception in my orchestrator, but how else can I catch the exception and pass it to the user's output?
As far as I know, the orchestrator is the highest level, I could handle exceptions in a durable function.
I've tested with a middleware to handle the exception, but it doesn't show the expected behavior either.
My goal is to get a clean exception message in the output token of the status query.
So it looks something like this:
"name": "Function1",
"runtimeStatus": "Failed",
"output": "[Actually exception message of the activity]"
The current behavior is this output:
"output": "One or more errors occurred. (Task 'ExceptionTest' (#0) failed with an unhandled exception: Test Exception)"
from durabletask-dotnet.
Ah okay. Yeah the framework is dropping inner-exception details, which is what you want. This is a duplicate of #140 then.
from durabletask-dotnet.
Related Issues (20)
- Unit Testing Isolated Model Azure Durable Function Orchestrator in .Net 8 HOT 6
- PurgeInstancesAsync fails after 100 seconds
- Class syntax example doesn't work HOT 2
- PurgeAllInstancesAsync Fails with Exception when there are no instances to Purge from PurgeFilter HOT 1
- Listing instances with DurableTaskClient.GetAllInstancesAsync() is more than twice as slower than with IDurableOrchestrationClient.ListInstancesAsync() HOT 4
- Durable functions hubname cannot be configured from app settings HOT 1
- WaitForExternalEvent<T>(eventName, timespan, cancellationToken) not supported (anymore?) in isolated mode
- Ability to Set Both RetryPolicy? Policy and AsyncRetryHandler? Handler in TaskRetryOptions HOT 8
- (De)serialize `State` property when using `TaskEntity<TState>`-based implementation not working (correctly) HOT 7
- DurableTaskClient.PurgeAllInstancesAsync: NotSupportedException and RpcException for .net 8 isolated HOT 11
- Roslyn Analyzer: System.TimeProvider
- Roslyn Analyzer: document how orchestrations are analyzed and the method probing is executed.
- The filter passed to _PurgeAllInstancesAsync(PurgeInstancesFilter filter, CancellationToken cancellation)_ on the DurableTaskClient, is not used, instead a new instance is created HOT 1
- Any documentation on how to build the project? HOT 1
- RaiseEventAsync with a given taskhubname is missing compared to in process HOT 4
- Investigate state sharing between different Roslyn analyzers
- RpcException - PurgeAllInstancesAsync operation was canceled - HttpClient.Timeout of 100 seconds elapsing HOT 4
- Improve environment variable analyzer to catch dotnet configuration APIs
- Keep getting "Error connecting to subchannel." errors when running on Azure HOT 1
- EntityTrigger does not get triggered in version of Microsoft.Azure.Functions.Worker.Extensions.DurableTask 1.1.3 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from durabletask-dotnet.