How to skip further execution if exception is catch
I am using web application.I am using aspx page as api.From function I am calling function 2.Both function have try and catch block.Function1()
{
try
{
int b = function2()
}
catch(Exception ex)
{
Response.Write(ex.Tostring());
}
}
public int Function2()
{
int a= 0;
try
{
a=8;
return a;
}
catch(Exception ex)
{
Response.Write(ex.Tostring());
return a;
}
}
I want to skip further execution(function1) if error catch in second funtion.can I use break in second function's catch block.