Class HonuaOgcRecordsException
- Namespace
- Honua.Sdk.Catalogs.Records.Exceptions
- Assembly
- Honua.Sdk.Catalogs.dll
Exception thrown when an OGC API Records request fails, including RFC 7807 Problem Details responses.
public sealed class HonuaOgcRecordsException : HonuaException, ISerializable
- Inheritance
-
HonuaOgcRecordsException
- Implements
- Inherited Members
Constructors
HonuaOgcRecordsException()
Initializes a new instance of the HonuaOgcRecordsException class.
public HonuaOgcRecordsException()
HonuaOgcRecordsException(HttpStatusCode, string, string?, Exception)
Initializes a new instance of the HonuaOgcRecordsException class with an inner exception.
public HonuaOgcRecordsException(HttpStatusCode statusCode, string message, string? responseBody, Exception innerException)
Parameters
statusCodeHttpStatusCodemessagestringresponseBodystringinnerExceptionException
HonuaOgcRecordsException(HttpStatusCode, string, string?, string?, string?, string?)
Initializes a new instance of the HonuaOgcRecordsException class.
public HonuaOgcRecordsException(HttpStatusCode statusCode, string message, string? responseBody = null, string? problemType = null, string? problemTitle = null, string? problemDetail = null)
Parameters
statusCodeHttpStatusCodemessagestringresponseBodystringproblemTypestringproblemTitlestringproblemDetailstring
HonuaOgcRecordsException(string)
Initializes a new instance of the HonuaOgcRecordsException class.
public HonuaOgcRecordsException(string message)
Parameters
messagestringA human-readable error message.
HonuaOgcRecordsException(string, Exception)
Initializes a new instance of the HonuaOgcRecordsException class with an inner exception.
public HonuaOgcRecordsException(string message, Exception innerException)
Parameters
messagestringA human-readable error message.
innerExceptionExceptionThe inner exception that caused this exception.
Properties
HttpStatus
The HTTP status code associated with the failure, normalized to an int, or null for non-HTTP transports (e.g. gRPC) or failures with no status. Lets callers branch on status uniformly without downcasting to a per-protocol exception type.
public override int? HttpStatus { get; }
Property Value
- int?
ProblemDetail
The RFC 7807 problem detail, if available.
public string? ProblemDetail { get; }
Property Value
ProblemDetails
The RFC 7807 problem document the server returned, or null; protocol-specific detail lives on derived types.
public override HonuaProblemDetails? ProblemDetails { get; }
Property Value
ProblemTitle
The RFC 7807 problem title, if available.
public string? ProblemTitle { get; }
Property Value
ProblemType
The RFC 7807 problem type URI, if available.
public string? ProblemType { get; }
Property Value
ResponseBody
The raw response body, if available.
public string? ResponseBody { get; }
Property Value
StatusCode
HTTP status code returned by the server.
public HttpStatusCode StatusCode { get; }