GatewayError

open class GatewayError(message: String, val statusCode: Int = 500, val type: String = "gateway_error", val generationId: String? = null, cause: Throwable? = null, val isRetryable: Boolean = statusCode == 408 || statusCode == 409 || statusCode == 429 || statusCode >= 500) : AiSdkException(source)

Since

0.3.0-beta01

Inheritors

Constructors

Link copied to clipboard
constructor(message: String, statusCode: Int = 500, type: String = "gateway_error", generationId: String? = null, cause: Throwable? = null, isRetryable: Boolean = statusCode == 408 || statusCode == 409 || statusCode == 429 || statusCode >= 500)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect open val message: String?
Link copied to clipboard
Link copied to clipboard