C# 클래스 K2Field.Helpers.Core.ExceptionHelper

파일 보기 프로젝트 열기: k2workflow/K2Field.Helpers

공개 메소드들

메소드 설명
IsFatal ( this exception ) : bool

http://vasters.com/clemensv/2012/09/06/Are+You+Catching+Falling+Knives.aspx We should not really be catching these fatal errors You can use this on any exception as an extension. And whenever you want to do a "catch all", you do this: try { DoWork(); } catch (Exception e) { if (e.IsFatal()) { throw; } Trace.TraceError(..., e); }

메소드 상세

IsFatal() 공개 정적인 메소드

http://vasters.com/clemensv/2012/09/06/Are+You+Catching+Falling+Knives.aspx We should not really be catching these fatal errors You can use this on any exception as an extension. And whenever you want to do a "catch all", you do this: try { DoWork(); } catch (Exception e) { if (e.IsFatal()) { throw; } Trace.TraceError(..., e); }
public static IsFatal ( this exception ) : bool
exception this
리턴 bool