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

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

The ExceptionContext type exposes the following members.

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