Open sandboxFocus

Interface IOnExceptionAspect

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

Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
Syntax
[HasInheritedAttribute]
public interface IOnExceptionAspect : IMethodLevelAspect, IAspect
Remarks

See OnExceptionAspect for details.

Methods

Name Description
OnException(MethodExecutionArgs)

Method executed after the body of methods to which this aspect is applied, in case that the method failed with an exception (i.e., in a catch block).

See Also