C# Class K2Field.Helpers.Core.ExceptionHelper

Show file Open project: k2workflow/K2Field.Helpers

Public Methods

Method Description
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); }

Method Details

IsFatal() public static method

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
return bool