try catch 블록 내에서 HttpResponse.End
으로 전화를 걸면 ThreadAbortException
이 자동으로 다시 발생합니다. try catch 블록에서 try catch 블록을 래핑하는 경우에도이 경우라고 가정합니다.예외를 자동으로 다시 발생하는 방법
어떻게하면 동일한 작업을 수행 할 수 있습니까? 나는 이것을 위해 실제 적용이 없다.
namespace Program
{
class ReJoice
{
public void End() //This does not automatically re-raise the exception if caught.
{
throw new Exception();
}
}
class Program
{
static void Main(string[] args)
{
try
{
ReJoice x = new ReJoice();
x.End();
}
catch (Exception e) {}
}
}
}
http://blogs.msdn.com/clrteam/archive/2009/04/28/threadabortexception.aspx – AaronLS