Interface AiServiceErrorListener
- All Superinterfaces:
AiServiceListener<AiServiceErrorEvent>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AiServiceErrorListener
extends AiServiceListener<AiServiceErrorEvent>
A listener for
AiServiceErrorEvent
, which represents an event
that occurs when an AI Service invocation fails.
This interface extends the generic AiServiceListener
,
specializing it for handling failure events.
Classes implementing this interface should handle scenarios where an AI Service invocation encounters an error. These scenarios include capturing and processing the associated error details encapsulated within the event.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Class
<AiServiceErrorEvent> Retrieves the class object representing the type ofAiServiceEvent
that this listener listens for.Methods inherited from interface AiServiceListener
onEvent
-
Method Details
-
getEventClass
Description copied from interface:AiServiceListener
Retrieves the class object representing the type ofAiServiceEvent
that this listener listens for.- Specified by:
getEventClass
in interfaceAiServiceListener<AiServiceErrorEvent>
- Returns:
- the
Class
object of the event type that this listener is associated with
-