PostSharp SDK6.6//Post­Sharp.​Sdk.​Code­Model Namespace/Exception­Handler Class

ExceptionHandler Class

Represents an exception handler.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.Element
    PostSharp.Sdk.CodeModel.Declaration
      PostSharp.Sdk.CodeModel.ExceptionHandler

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

The ExceptionHandler type exposes the following members.

Properties
  NameDescription
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
Methods
  NameDescription
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().)
Remarks
An ExceptionHandler is contained in an InstructionBlock, which is the protected block (i.e. the try block).
See Also