web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Exception handling in AX 2009

Abdel Fatah Ahmed Profile Picture Abdel Fatah Ahmed
if we want to handle the exception or detect the errors we use the try catch 
this example for using of try catch :


void Excp()
{
try
{
int flage=1;
;
if(flage == 1)
{
info("the falge is equel 1")
}
else
throw error ("Sorry the flage is Equel 0");
}
catch
{
info("Sorry something is wrong ");
}
}

Comments

*This post is locked for comments