Class TimeoutException

All Implemented Interfaces:
Serializable

public class TimeoutException extends TnsAIException
Exception for operation timeout errors. Retryable, but with increasing delays.
See Also:
  • Constructor Details

    • TimeoutException

      public TimeoutException(String message, long timeoutMs)
    • TimeoutException

      public TimeoutException(String message, Throwable cause, long timeoutMs)
    • TimeoutException

      public TimeoutException(String operation, long timeoutMs, Throwable cause)
  • Method Details

    • getTimeoutMs

      public long getTimeoutMs()
    • getOperation

      public String getOperation()
    • getSuggestedRetryDelayMs

      public long getSuggestedRetryDelayMs()
      Description copied from class: TnsAIException
      Gets suggested retry delay in milliseconds. Override in subclasses for specific retry strategies.
      Overrides:
      getSuggestedRetryDelayMs in class TnsAIException
    • getMaxRetryAttempts

      public int getMaxRetryAttempts()
      Description copied from class: TnsAIException
      Gets maximum recommended retry attempts.
      Overrides:
      getMaxRetryAttempts in class TnsAIException
    • llmTimeout

      public static TimeoutException llmTimeout(long timeoutMs)
      Factory method for LLM response timeout.
    • httpTimeout

      public static TimeoutException httpTimeout(String url, long timeoutMs)
      Factory method for HTTP request timeout.
    • actionTimeout

      public static TimeoutException actionTimeout(String actionName, long timeoutMs)
      Factory method for action execution timeout.