I am writing a wrapper for SSHnet dll from renci (https://sshnet.codeplex.com/), so I can fetch files from a sFTP server via Dynamics AX periodically.
When I catch errors in C# project for example in a try catch statement how can I parse the error message back to AX?
Options I thought of;
Should I put the error message in a string variable and read the
stringin Dynamics AX?Write errors to the event log on the AOS / client?