Class ApiException
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
Implements
Derived
Properties
ErrorResponse
Parsed error response body, if available.
public ApiErrorResponse? ErrorResponse { 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.