PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection.​Method­Body Namespace / IException­Handler Interface

IExceptionHandler Interface

Represents an exception handler (either catch, finally or filter) attached to a block.

Namespace:  PostSharp.Reflection.MethodBody
Assembly:  PostSharp (in PostSharp.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public interface IExceptionHandler

The IExceptionHandler type exposes the following members.

Properties
  NameDescription
Public propertyExceptionHandlerKind
Gets the kind of exception handling clause.
Public propertyExceptionType
Gets the type of handled exception, or null if all exceptions are handled.
Public propertyFilterBlock
Gets the exception filtering block, or null if all exceptions are handled.
Public propertyFilterLocalVariable
Gets the local variable containing the exception in the FilterBlock.
Public propertyHandlerBlock
Gets the exception handling block.
Public propertyHandlerLocalVariable
Gets the local variable containing the exception in the HandlerBlock.
Public propertyTryBlock
Gets the try block.
See Also