This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

IOnExceptionAspect Interface

Runtime semantics of an aspect that, when applied on a method, defines an exception handler around the whole method body and let the implementation of this interface handle the exception.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.34.0 (5.0.34.0)
Syntax
C#
public interface IOnExceptionAspect : IMethodLevelAspect, 
	IAspect

The IOnExceptionAspect type exposes the following members.

Methods
  NameDescription
Public methodOnException
Method executed after the body of methods to which this aspect is applied, in case that the method resulted with an exception (i.e., in a catch block).
Public methodRuntimeInitialize
Initializes the current aspect.
(Inherited from IMethodLevelAspect.)
Top
Remarks

See OnExceptionAspect for details.

See Also