Class HonuaSpecException
Exception thrown when the spec REST API returns an unsuccessful response.
public sealed class HonuaSpecException : HonuaException, ISerializable
- Inheritance
-
HonuaSpecException
- Implements
- Inherited Members
Constructors
HonuaSpecException()
Initializes a new instance of the HonuaSpecException class.
public HonuaSpecException()
HonuaSpecException(HttpStatusCode, string, string?, SpecProblem?)
Initializes a new instance of the HonuaSpecException class.
public HonuaSpecException(HttpStatusCode statusCode, string message, string? responseBody = null, SpecProblem? problem = null)
Parameters
statusCodeHttpStatusCodemessagestringresponseBodystringproblemSpecProblem
HonuaSpecException(string)
Initializes a new instance of the HonuaSpecException class.
public HonuaSpecException(string message)
Parameters
messagestringError message.
HonuaSpecException(string, Exception)
Initializes a new instance of the HonuaSpecException class.
public HonuaSpecException(string message, Exception innerException)
Parameters
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?
Problem
Structured problem details when available.
public SpecProblem? Problem { 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
ResponseBody
Raw response body when available.
public string? ResponseBody { get; }
Property Value
StatusCode
HTTP status code.
public HttpStatusCode StatusCode { get; }