Class HonuaSceneException
- Namespace
- Honua.Sdk.Scenes.Exceptions
- Assembly
- Honua.Sdk.Scenes.dll
Exception thrown when a scene metadata or package contract operation fails.
public sealed class HonuaSceneException : HonuaException, ISerializable
- Inheritance
-
HonuaSceneException
- Implements
- Inherited Members
Constructors
HonuaSceneException()
Initializes a new instance of the HonuaSceneException class.
public HonuaSceneException()
HonuaSceneException(HttpStatusCode, string, string?)
Initializes a new instance of the HonuaSceneException class.
public HonuaSceneException(HttpStatusCode statusCode, string message, string? responseBody = null)
Parameters
statusCodeHttpStatusCodeHTTP status code returned by the server.
messagestringA human-readable error message.
responseBodystringThe raw response body, if available.
HonuaSceneException(HttpStatusCode, string, string?, Exception)
Initializes a new instance of the HonuaSceneException class with an inner exception.
public HonuaSceneException(HttpStatusCode statusCode, string message, string? responseBody, Exception innerException)
Parameters
statusCodeHttpStatusCodeHTTP status code returned by the server.
messagestringA human-readable error message.
responseBodystringThe raw response body, if available.
innerExceptionExceptionThe inner exception that caused this exception.
HonuaSceneException(string)
Initializes a new instance of the HonuaSceneException class.
public HonuaSceneException(string message)
Parameters
messagestringA human-readable error message.
HonuaSceneException(string, Exception)
Initializes a new instance of the HonuaSceneException class with an inner exception.
public HonuaSceneException(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?
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
The raw response body, if available.
public string? ResponseBody { get; }
Property Value
StatusCode
HTTP status code returned by the server.
public HttpStatusCode StatusCode { get; }