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
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
Instance
A URI reference identifying the specific occurrence of the problem.
public string? Instance { get; init; }
Property Value
Status
The HTTP status code of the response.
public int Status { get; init; }
Property Value
Title
A short, human-readable summary of the problem type.
public string? Title { get; init; }
Property Value
Type
A URI reference identifying the problem type.
public string Type { get; init; }
Property Value
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
extensionstringThe extension key to look up.
valueTValueWhen this method returns, the deserialized extension value, if found and successfully deserialized.
Returns
Type Parameters
TValueThe type to deserialize the extension value as.