class

AI::Provider::EmptyResponseBodyError

Inherits AI::Provider::AISDKError < Exception < Reference < Object

Error thrown when an API response body is empty.

This error indicates that the API returned a successful response but with no content in the body.

Constructors

new(*, message : String = "Empty response body")

Creates a new EmptyResponseBodyError.

Parameters:

  • message: Optional custom message (defaults to "Empty response body")
Source

Class methods

instance?(error) : Bool

Checks if the given value is an instance of EmptyResponseBodyError.

Source