Table of Contents

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

message string

A 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

message string

A human-readable error message.

innerException Exception

The 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

message string

A human-readable error message.

operation string

The operation that produced the malformed response.

responseBody string

The 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

message string

A human-readable error message.

operation string

The operation that produced the malformed response.

responseBody string

The raw response body, if available.

innerException Exception

The inner exception that caused this exception.

Properties

Operation

The operation that produced the malformed response.

public string? Operation { get; }

Property Value

string

ResponseBody

The raw response body, if available.

public string? ResponseBody { get; }

Property Value

string