Share via


ExceptionContext Constructor

 

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

Overload List

Name Description
System_CAPS_pubmethod ExceptionContext(Exception, ExceptionContextCatchBlock)

Initializes a new instance of the ExceptionContext class.

System_CAPS_pubmethod ExceptionContext(Exception, ExceptionContextCatchBlock, HttpActionContext)

Initializes a new instance of the ExceptionContext class.

System_CAPS_pubmethod ExceptionContext(Exception, ExceptionContextCatchBlock, HttpRequestMessage)

Initializes a new instance of the ExceptionContext class.

System_CAPS_pubmethod 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

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

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

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

Return to top