Table of Contents

ToProblemDetails Method

Definition

ToProblemDetails(IDecorator<HttpExceptionDescriptor>, FaultSensitivityDetails)

Converts the specified IDecorator<T> of HttpExceptionDescriptor to an instance of ProblemDetails.

public static ProblemDetails ToProblemDetails(this IDecorator<HttpExceptionDescriptor> decorator, FaultSensitivityDetails sensitivity)

Parameters

decorator IDecorator<HttpExceptionDescriptor>

The decorator that encapsulates the HttpExceptionDescriptor.

sensitivity FaultSensitivityDetails

The sensitivity details to include in the ProblemDetails.

Returns

ProblemDetails

An instance of ProblemDetails that represents the specified HttpExceptionDescriptor.

Exceptions

ArgumentNullException

decorator cannot be null.