Class ToolTimeoutException

All Implemented Interfaces:
Serializable

public class ToolTimeoutException extends ToolException
Tool exceeded its execution deadline. Retryable: a transient slowdown upstream may resolve. Carries the configured deadline so operators can see whether the timeout setting was the bottleneck.
Since:
0.5.0 (issue #88)
See Also:
  • Constructor Details

    • ToolTimeoutException

      public ToolTimeoutException(String toolName, Duration deadline)
    • ToolTimeoutException

      public ToolTimeoutException(String toolName, Duration deadline, Throwable cause)
  • Method Details

    • getDeadline

      public Duration getDeadline()
    • 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