Open sandboxFocus

Class OnExceptionAspectConfiguration

Configuration of the IOnExceptionAspect aspect.

Inheritance
OnExceptionAspectConfiguration
Namespace: PostSharp.Aspects.Configuration
Assembly: PostSharp.dll
Syntax
public sealed class OnExceptionAspectConfiguration : AspectConfiguration
Remarks

OnExceptionAspect creates this object at build time and sets ExceptionType to the value returned by GetExceptionType(MethodBase). An aspect that implements IOnExceptionAspect directly provides it from GetAspectConfiguration(object).

Constructors

Name Description
OnExceptionAspectConfiguration()

Properties

Name Description
ExceptionType

Gets or sets the type of exceptions that are caught by this aspect.

SemanticallyAdvisedMethodKinds

Gets or sets the kinds of target methods that are advised semantically. This affects the behavior of the aspect when it is applied to iterator or async methods, which are compiled into state machines.

See Also