Table of Contents

Class HttpProblemDetailsException

Namespace
MRX.UI.ErrorsAutoWiring.Http.Interop
Assembly
MRX.UI.ErrorsAutoWiring.dll

Represents an RFC 7807 problem details response received from an HTTP call.

public class HttpProblemDetailsException : Exception, ISerializable
Inheritance
HttpProblemDetailsException
Implements
Derived
Inherited Members

Properties

Detail

A human-readable explanation specific to this occurrence of the problem.

public string? Detail { get; init; }

Property Value

string

Extensions

Any additional members of the problem details response that are not mapped to a named property.

[JsonExtensionData]
public IDictionary<string, JsonElement>? Extensions { get; init; }

Property Value

IDictionary<string, JsonElement>

Instance

A URI reference identifying the specific occurrence of the problem.

public string? Instance { get; init; }

Property Value

string

Status

The HTTP status code of the response.

public int Status { get; init; }

Property Value

int

Title

A short, human-readable summary of the problem type.

public string? Title { get; init; }

Property Value

string

Type

A URI reference identifying the problem type.

public string Type { get; init; }

Property Value

string

Methods

TryGetExtension<TValue>(string, out TValue?)

Attempts to retrieve and deserialize an additional member from Extensions, matching its key case-insensitively.

public bool TryGetExtension<TValue>(string extension, out TValue? value)

Parameters

extension string

The extension key to look up.

value TValue

When this method returns, the deserialized extension value, if found and successfully deserialized.

Returns

bool

true if the extension was found and successfully deserialized; otherwise, false.

Type Parameters

TValue

The type to deserialize the extension value as.