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
Exception for SkillSource implementations to signal recoverable errors that will have the message sending back to the LLM.
See Also:
  • Field Details

  • Constructor Details

    • SkillSourceException

      public SkillSourceException(String message, String errorCode)
      Constructs a new exception with the specified detail message and error code.
      Parameters:
      message - The detail message.
      errorCode - The specific error code categorizing the failure.
    • SkillSourceException

      public SkillSourceException(String message, String errorCode, Throwable cause)
      Constructs a new exception with the specified detail message, error code, and 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 categorizing the failure.
      Returns:
      The error code string.