PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Exception­Handler Class

ExceptionHandler Class

Represents an exception handler.
Inheritance Hierarchy

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: (
public sealed class ExceptionHandler : Declaration, 
	IExceptionHandler, ILinkedListNode<IExceptionHandler>

The ExceptionHandler type exposes the following members.

Public propertyCatchType
Gets or sets the catch type.
Public propertyCustomDebuggingInformation (Inherited from Declaration.)
Public propertyOptions
Gets or sets the kind of exception handling clause.
Public propertyToken
Public methodClearCache
Clear the cache (typically mapping to System.Reflection or, if the current element is a reference, to the related definition) of the current Element and all its children.
(Inherited from Element.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Overrides Object.ToString().)
An ExceptionHandler is contained in an InstructionBlock, which is the protected block (i.e. the try block).
See Also