Package com.google.genai.errors
Class ServerException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class ServerException extends ApiException
Server exception raised by the GenAI API.
-
-
Field Summary
Fields Modifier and Type Field Description public final Stringmessagepublic Throwablecausepublic Array<StackTraceElement>stackTrace
-
Constructor Summary
Constructors Constructor Description ServerException(int code, String status, String message)Creates a new ServerException with the specified message.
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class com.google.genai.errors.ApiException
code, message, status, throwFromErrorNode, throwFromResponse, throwFromResponse -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-