class
AI::Provider::UnsupportedFunctionalityError
- AI::Provider::UnsupportedFunctionalityError
- AI::Provider::AISDKError
- Exception
- Reference
- Object
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.crConstructors
-
.new(*, functionality : String, message : String | Nil = nil)
Creates a new UnsupportedFunctionalityError.
Class Method Summary
-
.instance?(error) : Bool
Checks if the given value is an instance of UnsupportedFunctionalityError.
Instance Method Summary
-
#functionality : String
The name of the unsupported functionality.
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.")
Class Method Detail
def self.instance?(error) : Bool
#
Checks if the given value is an instance of UnsupportedFunctionalityError.