Class HonuaStudioContractException
- Namespace
- Honua.Sdk.Studio.Exceptions
- Assembly
- Honua.Sdk.Studio.dll
Exception thrown when a successful Studio API response does not satisfy the expected contract (for example an empty body or JSON that does not match the modeled report shape). Distinct from HonuaStudioApiException, which signals an unsuccessful HTTP status.
public sealed class HonuaStudioContractException : HonuaException, ISerializable
- Inheritance
-
HonuaStudioContractException
- Implements
- Inherited Members
Constructors
HonuaStudioContractException()
Initializes a new instance of the HonuaStudioContractException class.
public HonuaStudioContractException()
HonuaStudioContractException(string)
Initializes a new instance of the HonuaStudioContractException class.
public HonuaStudioContractException(string message)
Parameters
messagestringA human-readable error message.
HonuaStudioContractException(string, Exception)
Initializes a new instance of the HonuaStudioContractException class with an inner exception.
public HonuaStudioContractException(string message, Exception innerException)
Parameters
messagestringA human-readable error message.
innerExceptionExceptionThe inner exception that caused this exception.
HonuaStudioContractException(string, string?, string?)
Initializes a new instance of the HonuaStudioContractException class.
public HonuaStudioContractException(string message, string? operation, string? responseBody = null)
Parameters
messagestringA human-readable error message.
operationstringThe operation that produced the malformed response.
responseBodystringThe raw response body, if available.
HonuaStudioContractException(string, string?, string?, Exception)
Initializes a new instance of the HonuaStudioContractException class with an inner exception.
public HonuaStudioContractException(string message, string? operation, string? responseBody, Exception innerException)
Parameters
messagestringA human-readable error message.
operationstringThe operation that produced the malformed response.
responseBodystringThe raw response body, if available.
innerExceptionExceptionThe inner exception that caused this exception.
Properties
Operation
The operation that produced the malformed response.
public string? Operation { get; }
Property Value
ResponseBody
The raw response body, if available.
public string? ResponseBody { get; }