Class ToolInputException

All Implemented Interfaces:
Serializable

public class ToolInputException extends ToolException
Tool input was invalid — required field missing, type mismatch, value outside allowed range, schema violation. Detected before the tool's external work begins, so always non-retryable: same input will always fail.

Carries the validation failure list so the caller (or LLM, in a tool-calling loop) can correct the input on the next attempt.

Since:
0.5.0 (issue #88)
See Also:
  • Constructor Details

    • ToolInputException

      public ToolInputException(String toolName, List<String> validationErrors)
    • ToolInputException

      public ToolInputException(String toolName, String validationError)
  • Method Details

    • getValidationErrors

      public List<String> getValidationErrors()
    • getErrorCode

      public String getErrorCode()
      Description copied from class: TnsAIException
      Gets the error code for this exception type. Format: TNSAI-XXX where XXX is derived from class name.
      Overrides:
      getErrorCode in class TnsAIException