Class GeminiInteractionsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.glaforge.gemini.interactions.GeminiInteractionsException
- All Implemented Interfaces:
Serializable
Exception thrown when the Gemini Interactions API returns an error response.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeminiInteractionsException(String message, int statusCode, String body) Constructs a new exception with the specified message, status code, and body.GeminiInteractionsException(String message, Throwable cause) Constructs a new exception with the specified message and cause.Constructs a new exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
GeminiInteractionsException
Constructs a new exception with the specified message, status code, and body.- Parameters:
message- The error message.statusCode- The HTTP status code.body- The response body.
-
GeminiInteractionsException
Constructs a new exception with the specified message and cause.- Parameters:
message- The error message.cause- The cause of the exception.
-
GeminiInteractionsException
Constructs a new exception with the specified cause.- Parameters:
cause- The cause of the exception.
-
-
Method Details