类:VertexAiApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.adk.sessions.SessionException
com.google.adk.sessions.VertexAiApiException
- All Implemented Interfaces:
Serializable
表示来自 Vertex AI Session API 的非 2xx 类型、非 404 类型的 HTTP 状态码。该功能用于扩展(即扩展应用程序的功能或处理逻辑)。
SessionException 因此,现有的(情况/系统等)仍然适用/有效。 catch (SessionException) 调用站点仍然可以正常使用。- See Also:
-
字段摘要
Fields inherited from class SessionException
SESSION_ALREADY_EXISTSModifier and TypeFieldDescriptionstatic final String当……时使用的消息。createSession被分配了一个已经被其他人使用的会话 ID(session ID)。 -
方法概述
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
方法详细信息(Method Details)
-
statusCode
public int statusCode()返回 API 返回的 HTTP 状态码。
-