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 ");
}
}
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 ");
}
}
*This post is locked for comments