ExceptionContext Class

 

Represents an exception and the contextual data associated with it when it was caught.

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

System::Object
  System.Web.Http.ExceptionHandling::ExceptionContext

public ref class ExceptionContext 

NameDescription
System_CAPS_pubmethodExceptionContext(Exception^, ExceptionContextCatchBlock^)

Initializes a new instance of the ExceptionContext class.

System_CAPS_pubmethodExceptionContext(Exception^, ExceptionContextCatchBlock^, HttpActionContext^)

Initializes a new instance of the ExceptionContext class.

System_CAPS_pubmethodExceptionContext(Exception^, ExceptionContextCatchBlock^, HttpRequestMessage^)

Initializes a new instance of the ExceptionContext class.

System_CAPS_pubmethodExceptionContext(Exception^, ExceptionContextCatchBlock^, HttpRequestMessage^, HttpResponseMessage^)

Initializes a new instance of the ExceptionContext class.

NameDescription
System_CAPS_pubpropertyActionContext

Gets the action context in which the exception occurred, if available.

System_CAPS_pubpropertyCatchBlock

Gets the catch block in which the exception was caught.

System_CAPS_pubpropertyControllerContext

Gets the controller context in which the exception occurred, if available.

System_CAPS_pubpropertyException

Gets the caught exception.

System_CAPS_pubpropertyRequest

Gets the request being processed when the exception was caught.

System_CAPS_pubpropertyRequestContext

Gets the request context in which the exception occurred.

System_CAPS_pubpropertyResponse

Gets the response being sent when the exception was caught.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: