GenAiException

  • The GenAiException class represents exceptions that occur during service execution.

  • It includes a nested class called ErrorCode which defines the set of possible error codes.

  • The public method getErrorCode allows retrieval of the specific error code associated with the exception.

public class GenAiException extends Exception

Represents an exception that occurs during service execution.

Nested Class Summary

@interface GenAiException.ErrorCode The set of error codes. 

Public Method Summary

int

Inherited Method Summary

Public Methods

public int getErrorCode ()