Izvrsavanje se prekida i prenosi se na sledeci nivo. Probaj sam...
Code:
namespace Snippets
{
public class Program
{
public static void Main()
{
try
{
try
{
Console.WriteLine("Line1 try");
throw new Exception("Exception from try...");
Console.WriteLine("Line2 try");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
finally
{
Console.WriteLine("Line1 finally");
throw new Exception("Exception from finally...");
Console.WriteLine("Line2 finally");
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}
}
If it's a girl then they're gonna call it Sigourney, after an actress. If it's a boy, then they're gonna call it Rodney, after Dave!