PostSharp SDK 6.8 / / Class Reference / Post­Sharp.​Sdk.​Utilities Namespace / Exception­Context Class

ExceptionContext Class

Maintains a stack of context information related to an exception. The catch block of an exception handler should call Push(String, Object[]) and rethrow the exception.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.Utilities.ExceptionContext

Namespace:  PostSharp.Sdk.Utilities
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public static class ExceptionContext

The ExceptionContext type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClear
Clear the context stack.
Public methodStatic memberGetStack
Gets the messages on the stack.
Public methodStatic memberPush
Pushes a new information message to the exception stack. This method is typically invoked from an exception handler, which rethrows the exception afterward.
See Also