ToProblemDetails Method
Definition
- Namespace
- Cuemon.AspNetCore.Diagnostics
- Assemblies
- Cuemon.AspNetCore.dll
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
decoratorIDecorator<HttpExceptionDescriptor>The decorator that encapsulates the HttpExceptionDescriptor.
sensitivityFaultSensitivityDetailsThe sensitivity details to include in the ProblemDetails.
Returns
- ProblemDetails
An instance of ProblemDetails that represents the specified HttpExceptionDescriptor.
Exceptions
- ArgumentNullException
decoratorcannot be null.