2015년 9월 21일 월요일

[ C# ] 다수 Exception처리

[ C# ] 다수 Exception처리
catch (Exception ex)           
{               
    if (ex is FormatException || ex is OverflowException)
    {
        WebId = Guid.Empty;
        return;
    }
    throw;
}

http://stackoverflow.com/questions/136035/catch-multiple-exceptions-at-once

댓글 없음:

댓글 쓰기