C# Класс K2Field.Helpers.Core.ExceptionHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
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