Configuration of the IOnExceptionAspect aspect.
Namespace: PostSharp.Aspects.Configuration
Assembly: PostSharp.dll
Syntax
public sealed class OnExceptionAspectConfiguration : AspectConfigurationRemarks
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. |