I have a aif service in ax 2012. I pass information into it from .net applications. basically i'm posting to the general journal. But when there is an error, say bad information being passed in, it returns a general error usually "error validating record". But the warning message displays the actual reason why it caused an error such as the bad data.
Is there a way to catch and display the warning message. I tried exception::warning
but it just goes right to the exception::error
.
catch (Exception::Error)
{
throw Global::error("need to get warning");
}