catch (Exception e)
{
try
{
throw;
}
catch
{
Console.WriteLine("Script did not handle exception: " + e.Message);
return null;
}
}
is semantically identical to:
catch (Exception e)
{
Console.WriteLine("Script did not handle exception: " + e.Message);
return null;
}
The script is never seeing that inner throw
- it is being caught by your C# code.