Forum Discussion
sorin_velican
13 years agoOccasional Contributor
try
{
funcA(); // funcA calls funcB() who calls funcC() who throws the exception.
}
catch (e)
{
Log.Message( "Exception caught");
}
should be something like
try
{
if ( funcA() == "exception")
throw new Error(errorMessage);
}
catch (e)
{
Log.Message( "Exception caught");
}
and in funcA() you should have something like
try
{
operation1
operation2
...
operationn
}
catch (e)
{
return "exception"
}
or you can use false, -1, or what value you want