PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / On­Exception­Aspect Class / On­Exception­Aspect Methods
OnExceptionAspect Methods

The OnExceptionAspect type exposes the following members.

Methods
  Name Description
Public method CompileTimeInitialize
Method invoked at build time to initialize the instance fields of the current aspect. This method is invoked before any other build-time method.
(Inherited from MethodLevelAspect.)
Public method CompileTimeValidate(Object)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from MethodLevelAspect.)
Public method CompileTimeValidate(MethodBase)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from MethodLevelAspect.)
Protected method CreateAspectConfiguration
Method invoked at build time to create a concrete AspectConfiguration instance specifically for the current Aspect type.
(Overrides Aspect.CreateAspectConfiguration().)
Public method GetAspectConfiguration
Method invoked at build tome to get the imperative configuration of the current Aspect.
(Inherited from Aspect.)
Public method GetExceptionType
Gets the type of exception handled by this aspect.
Public method OnException
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 method RuntimeInitialize
Initializes the current aspect.
(Inherited from MethodLevelAspect.)
Protected method SetAspectConfiguration(AspectConfiguration, Object)
Method invoked at build time to set up an AspectConfiguration object according to the current Aspect instance and a specified target element of the current aspect.
(Inherited from MethodLevelAspect.)
Protected method SetAspectConfiguration(AspectConfiguration, MethodBase)
Method invoked at build time to set up an AspectConfiguration object according to the current Aspect instance and a specified target element of the current aspect.
(Overrides MethodLevelAspect.SetAspectConfiguration(AspectConfiguration, MethodBase).)
Extension Methods
  Name Description
Public Extension Method QueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also