Hello community,
I am looking to catch the X++ exception object similar to C# "Catch (System.Exception _e)".
When debugging the catch block I can see a new object has been added to the Locals pane.
Name: $exception
toString:{"<Error text goes here>"}
Type: Microsoft.Dynamics.Ax.Xpp.ErrorException
Is this an object that I can access with X++ in the catch block?
I am very interested in retrieving the stack trace that lead to the exception being thrown.
Best Regards,
Cody P