Class ServerException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public final class ServerException
    extends ApiException
                        

    Server exception raised by the GenAI API.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ServerException(int code, String status, String message) Creates a new ServerException with the specified message.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

      • ServerException

        ServerException(int code, String status, String message)
        Creates a new ServerException with the specified message.
    • Method Detail