Table of Contents

Class HttpExceptionDescriptorDecoratorExtensions

Namespace
Cuemon.AspNetCore.Diagnostics
Assembly
Cuemon.AspNetCore.dll

Extension methods for HttpExceptionDescriptor class hidden behind the IDecorator<T> interface.

public static class HttpExceptionDescriptorDecoratorExtensions
Inheritance
HttpExceptionDescriptorDecoratorExtensions

Methods

ToProblemDetails(IDecorator<HttpExceptionDescriptor>, FaultSensitivityDetails)

Converts the specified IDecorator<T> of HttpExceptionDescriptor to an instance of Microsoft.AspNetCore.Mvc.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 Microsoft.AspNetCore.Mvc.ProblemDetails.

Returns

ProblemDetails

An instance of Microsoft.AspNetCore.Mvc.ProblemDetails that represents the specified HttpExceptionDescriptor.

Exceptions

ArgumentNullException

decorator cannot be null.