Share via


ExceptionHandlerContext.Exception Property

 

Gets the caught exception.

Namespace:   System.Web.Http.ExceptionHandling
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

public Exception Exception { get; }
public:
property Exception^ Exception {
    Exception^ get();
}
member Exception : Exception with get
Public ReadOnly Property Exception As Exception

Property Value

Type: System.Exception

The caught exception.

See Also

ExceptionHandlerContext Class
System.Web.Http.ExceptionHandling Namespace

Return to top