메소드 | 설명 | |
---|---|---|
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); }
|