Sub-orchestration's FunctionFailedException.InnerException.Message is always the "Exception of type *** was thrown" #2680
Unanswered
Meadow201317
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
I am throwing DiskOperationFailedException() from the activity to orchestrator and expecting FunctionFailedException.InnerException to have the customized exception message, instead of the common "Exception of type 'Microsoft.CloudManagedDesktop.DiskRM.Core.Model.Exceptions.DiskOperationFailedException' was thrown.".
Expected
FunctionFailedException.InnerException.Message should be the customized Message.
Additional Details
In Activity
throw new DiskOperationFailedException("Failed to call ARM client").
In Orchestrator
I wish to take the ex.InnerException.Message as "Failed to call ARM client" but the actual result is "Exception of type 'Microsoft.CloudManagedDesktop.DiskRM.Core.Model.Exceptions.DiskOperationFailedException' was thrown."
Beta Was this translation helpful? Give feedback.
All reactions