ExceptionContext Constructor
Namespace: System.Web.Http.ExceptionHandling
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
![]() |
ExceptionContext(Exception, ExceptionContextCatchBlock) | Initializes a new instance of the ExceptionContext class. |
![]() |
ExceptionContext(Exception, ExceptionContextCatchBlock, HttpActionContext) | Initializes a new instance of the ExceptionContext class. |
![]() |
ExceptionContext(Exception, ExceptionContextCatchBlock, HttpRequestMessage) | Initializes a new instance of the ExceptionContext class. |
![]() |
ExceptionContext(Exception, ExceptionContextCatchBlock, HttpRequestMessage, HttpResponseMessage) | Initializes a new instance of the ExceptionContext class. |
See Also
ExceptionContext Class
System.Web.Http.ExceptionHandling Namespace
Return to top
ExceptionContext Constructor (Exception, ExceptionContextCatchBlock)
Initializes a new instance of the ExceptionContext class.
Syntax
public ExceptionContext(
Exception exception,
ExceptionContextCatchBlock catchBlock
)
public:
ExceptionContext(
Exception^ exception,
ExceptionContextCatchBlock^ catchBlock
)
new :
exception:Exception *
catchBlock:ExceptionContextCatchBlock -> ExceptionContext
Public Sub New (
exception As Exception,
catchBlock As ExceptionContextCatchBlock
)
Parameters
exception
Type: System.ExceptionThe caught exception.
catchBlock
Type: System.Web.Http.ExceptionHandling.ExceptionContextCatchBlockThe catch block where the exception was caught.
Return to top
ExceptionContext Constructor (Exception, ExceptionContextCatchBlock, HttpActionContext)
Initializes a new instance of the ExceptionContext class.
Syntax
public ExceptionContext(
Exception exception,
ExceptionContextCatchBlock catchBlock,
HttpActionContext actionContext
)
public:
ExceptionContext(
Exception^ exception,
ExceptionContextCatchBlock^ catchBlock,
HttpActionContext^ actionContext
)
new :
exception:Exception *
catchBlock:ExceptionContextCatchBlock *
actionContext:HttpActionContext -> ExceptionContext
Public Sub New (
exception As Exception,
catchBlock As ExceptionContextCatchBlock,
actionContext As HttpActionContext
)
Parameters
exception
Type: System.ExceptionThe caught exception.
catchBlock
Type: System.Web.Http.ExceptionHandling.ExceptionContextCatchBlockThe catch block where the exception was caught.
actionContext
Type: System.Web.Http.Controllers.HttpActionContextThe action context in which the exception occurred.
Return to top
ExceptionContext Constructor (Exception, ExceptionContextCatchBlock, HttpRequestMessage)
Initializes a new instance of the ExceptionContext class.
Syntax
public ExceptionContext(
Exception exception,
ExceptionContextCatchBlock catchBlock,
HttpRequestMessage request
)
public:
ExceptionContext(
Exception^ exception,
ExceptionContextCatchBlock^ catchBlock,
HttpRequestMessage^ request
)
new :
exception:Exception *
catchBlock:ExceptionContextCatchBlock *
request:HttpRequestMessage -> ExceptionContext
Public Sub New (
exception As Exception,
catchBlock As ExceptionContextCatchBlock,
request As HttpRequestMessage
)
Parameters
exception
Type: System.ExceptionThe caught exception.
catchBlock
Type: System.Web.Http.ExceptionHandling.ExceptionContextCatchBlockThe catch block where the exception was caught.
request
Type: System.Net.Http.HttpRequestMessageThe request being processed when the exception was caught.
Return to top
ExceptionContext Constructor (Exception, ExceptionContextCatchBlock, HttpRequestMessage, HttpResponseMessage)
Initializes a new instance of the ExceptionContext class.
Syntax
public ExceptionContext(
Exception exception,
ExceptionContextCatchBlock catchBlock,
HttpRequestMessage request,
HttpResponseMessage response
)
public:
ExceptionContext(
Exception^ exception,
ExceptionContextCatchBlock^ catchBlock,
HttpRequestMessage^ request,
HttpResponseMessage^ response
)
new :
exception:Exception *
catchBlock:ExceptionContextCatchBlock *
request:HttpRequestMessage *
response:HttpResponseMessage -> ExceptionContext
Public Sub New (
exception As Exception,
catchBlock As ExceptionContextCatchBlock,
request As HttpRequestMessage,
response As HttpResponseMessage
)
Parameters
exception
Type: System.ExceptionThe caught exception.
catchBlock
Type: System.Web.Http.ExceptionHandling.ExceptionContextCatchBlockThe catch block where the exception was caught.
request
Type: System.Net.Http.HttpRequestMessageThe request being processed when the exception was caught.
response
Type: System.Net.Http.HttpResponseMessageThe repsonse being returned when the exception was caught.
Return to top