Hi All,
Lets understand this new feature to throw the exception from catch block .
Now we can use throw from catch block. This way throw will work like re-throw and send cached exception to the outer catch block. Lets understand it by sample code.
X++ Code.
try
{
throw Exception::error;
}
catch
{
// locally handle exception
// then rethrow for caller
throw;
}
Thank you.
No comments:
Post a Comment