Class SkillSourceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.adk.skills.SkillSourceException
All Implemented Interfaces:
Serializable

public final class SkillSourceException extends Exception
(用于表示某种情况或异常)属于……的例外情况 SkillSource 这些实现用于报告那些可以恢复的错误;当发生此类错误时,系统会将相应的错误信息发送回大型语言模型(LLM)。
See Also:
  • 字段详情

  • 构造函数详细信息

    • SkillSourceException

      public SkillSourceException(String message, String errorCode)
      根据指定的详细信息(message)和错误代码(error code),构造一个新的异常对象。
      Parameters:
      message - The detail message.
      errorCode - The specific error code categorizing the failure.
    • SkillSourceException

      public SkillSourceException(String message, String errorCode, Throwable cause)
      使用指定的详细信息、错误代码和错误原因来构造一个新的异常对象。
      Parameters:
      message - The detail message.
      errorCode - The specific error code categorizing the failure.
      cause - The cause.
  • 方法详细信息(Method Details)

    • getErrorCode

      public String getErrorCode()
      返回用于分类该故障的错误代码。
      Returns:
      The error code string.