Class WebErrorHandlerContext
Provides the inner exception and other relevant data needed to handle a web error and return a response error message to the caller.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services.Web
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class WebErrorHandlerContext
Constructors
WebErrorHandlerContext(Exception, Message, WebOperationContext, ServiceConfiguration, RoutingEndpointDefinition)
Initializes a new instance with the provided parameters.
Declaration
public WebErrorHandlerContext(Exception error, Message message, WebOperationContext webContext, ServiceConfiguration configuration, RoutingEndpointDefinition endpoint)
Parameters
Type | Name | Description |
---|---|---|
Exception | error | Exception thrown in the course of the service operation. |
Message | message | Response message to be inspected and possibly modified. |
WebOperationContext | webContext | Current web operation context that can be used to construct response message. |
ServiceConfiguration | configuration | Full runtime configuration of the current service. |
RoutingEndpointDefinition | endpoint | Description of the endpoint where message is intercepted. |
Properties
Configuration
Gets the full runtime configuration of the current service.
Declaration
public ServiceConfiguration Configuration { get; }
Property Value
Type | Description |
---|---|
ServiceConfiguration |
Endpoint
Gets the description of the endpoint where message is intercepted.
Declaration
public RoutingEndpointDefinition Endpoint { get; }
Property Value
Type | Description |
---|---|
RoutingEndpointDefinition |
Error
Gets the exception thrown in the course of the service operation.
Declaration
public Exception Error { get; }
Property Value
Type | Description |
---|---|
Exception |
Message
Gets or sets the response message to be inspected and possibly modified.
Declaration
public Message Message { get; set; }
Property Value
Type | Description |
---|---|
Message |
RoutingContext
Gets routing context stored in the message being processed.
Declaration
public RoutingContextMessageProperty RoutingContext { get; }
Property Value
Type | Description |
---|---|
RoutingContextMessageProperty |
WebContext
Gets the current web operation context that can be used to construct response message.
Declaration
public WebOperationContext WebContext { get; }
Property Value
Type | Description |
---|---|
WebOperationContext |