class AI::Provider::UnsupportedFunctionalityError

Overview

Error thrown when a requested functionality is not supported.

This error indicates that a feature or capability is not available for the current provider or model.

Defined in:

ai/provider/errors/unsupported_functionality_error.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class AI::Provider::AISDKError

name : String name, to_s(io : IO) : Nil to_s

Constructor methods inherited from class AI::Provider::AISDKError

new(*, name : String, message : String, cause : Exception | Nil = nil) new

Class methods inherited from class AI::Provider::AISDKError

instance?(error) : Bool instance?

Constructor Detail

def self.new(*, functionality : String, message : String | Nil = nil) #

Creates a new UnsupportedFunctionalityError.

Parameters:

  • functionality: The name of the unsupported functionality
  • message: Optional custom message (defaults to "'' functionality not supported.")

[View source]

Class Method Detail

def self.instance?(error) : Bool #

Checks if the given value is an instance of UnsupportedFunctionalityError.


[View source]

Instance Method Detail

def functionality : String #

The name of the unsupported functionality.


[View source]