Class SkillSourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.adk.skills.SkillSourceException
- All Implemented Interfaces:
Serializable
Exception for
SkillSource implementations to signal recoverable errors that will have the
message sending back to the LLM.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSkillSourceException(String message, String errorCode) Constructs a new exception with the specified detail message and error code.SkillSourceException(String message, String errorCode, Throwable cause) Constructs a new exception with the specified detail message, error code, and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the error code categorizing the failure.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
SKILL_LOAD_ERROR
- See Also:
-
SKILL_NOT_FOUND
- See Also:
-
SKILL_FORMAT_ERROR
- See Also:
-
RESOURCE_LOAD_ERROR
- See Also:
-
RESOURCE_NOT_FOUND
- See Also:
-
-
Constructor Details
-
SkillSourceException
-
SkillSourceException
-
-
Method Details
-
getErrorCode
Returns the error code categorizing the failure.- Returns:
- The error code string.
-