C# Class Catel.ExceptionHandling.ExceptionHandler

This implements the exception treatment mechanics.
Inheritance: IExceptionHandler
Show file Open project: Catel/Catel Class Usage Examples

Public Methods

Method Description
ExceptionHandler ( Type exceptionType, Action action, ExceptionPredicate filter = null ) : System

Initializes a new instance of the ExceptionHandler class.

Handle ( Exception exception ) : void

Handles the exception using the action that was passed into the constructor.

Method Details

ExceptionHandler() public method

Initializes a new instance of the ExceptionHandler class.
The is null. The is null.
public ExceptionHandler ( Type exceptionType, Action action, ExceptionPredicate filter = null ) : System
exceptionType System.Type Type of the exception.
action Action The action to execute.
filter ExceptionPredicate The exception filter.
return System

Handle() public method

Handles the exception using the action that was passed into the constructor.
The is null.
public Handle ( Exception exception ) : void
exception System.Exception The exception.
return void