Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

AX7 how to catch XPP exception object (Microsoft.Dynamics.Ax.Xpp.ErrorException)

$
0
0

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


Viewing all articles
Browse latest Browse all 175888

Trending Articles