PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Configuration Namespace / On­Exception­Aspect­Configuration Class / On­Exception­Aspect­Configuration Properties / On­Exception­Aspect­Configuration.​Exception­Type Property

OnExceptionAspectConfiguration.ExceptionType Property

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

Namespace:  PostSharp.Aspects.Configuration
Assembly:  PostSharp (in PostSharp.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public TypeIdentity ExceptionType { get; set; }

Property Value

Type: TypeIdentity
Remarks
If this property is null, any Exception shall be caught.
See Also