Class ApiException

Namespace: redb.Tsak.Client
Assembly: redb.Tsak.Client.dll

Base exception thrown when the Tsak API returns a non-success status code.
Existing catch (ApiException) sites continue to work — typed subclasses below
(, , etc.) extend this type
for HTTP-status-driven control flow without breaking callers.

public class ApiException : Exception, ISerializable

Inheritance

Object→Exception→ApiException

Implements

Derived

Properties

ErrorResponse

Parsed error response body, if available.

public ApiErrorResponse? ErrorResponse { get; }

StatusCode

HTTP status code returned by the API.

public int StatusCode { get; }

Methods

Create(int, string, ApiErrorResponse?)

Creates a typed subclass matching the HTTP status code.

public static ApiException Create(int statusCode, string message, ApiErrorResponse? errorResponse = null)

Constructors

ApiException(int, string, ApiErrorResponse?)

Initializes a new API exception.