C# Class MONI.Util.ExceptionExtensions

Exibir arquivo Open project: dotob/moni

Public Methods

Method Description
IsFatalException ( Exception ex ) : bool

Convience function for those that are not availability aware to quickly test if they should rethrow.

The question is where in the catch clause to put the test, at the beginning of the catch or at the end. Sometimes we do important cleaning in the catch clause plus notification of other threads. In doubt do the throw at the end of the exception handling.

Private Methods

Method Description
ContainsException ( Exception ex ) : bool

Method Details

IsFatalException() public static method

Convience function for those that are not availability aware to quickly test if they should rethrow.
The question is where in the catch clause to put the test, at the beginning of the catch or at the end. Sometimes we do important cleaning in the catch clause plus notification of other threads. In doubt do the throw at the end of the exception handling.
public static IsFatalException ( Exception ex ) : bool
ex System.Exception
return bool