Class OllamaToolErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
me.zacharias.chat.ollama.exceptions.OllamaToolErrorException
- All Implemented Interfaces:
Serializable
Represents an error from a tool.
This is used internally by tools instead of
This is used internally by tools instead of
Exception, to then be handled gracefully by Core.handleResponce(JSONObject)- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOllamaToolErrorException(String tool, Exception ex) OllamaToolErrorException(String tool, String error) Creates a new instance of OllamaToolErrorException. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OllamaToolErrorException
-
OllamaToolErrorException
-
-
Method Details
-
getTool
Gets the tool that caused the error.- Returns:
- The tool that caused the error
-
getError
-