Class ToolExternalServiceException

All Implemented Interfaces:
Serializable

public class ToolExternalServiceException extends ToolException
Tool failed because the upstream external service returned a server-side error — typically HTTP 5xx, a connection reset, or any provider-side malfunction the tool itself did not cause. Retryable: server-side transients usually resolve on a backed-off retry.
Since:
0.5.0 (issue #88)
See Also:
  • Constructor Details

    • ToolExternalServiceException

      public ToolExternalServiceException(String toolName, String upstreamService, String message)
    • ToolExternalServiceException

      public ToolExternalServiceException(String toolName, String upstreamService, String message, int httpStatusCode, Throwable cause)
  • Method Details

    • getUpstreamService

      public String getUpstreamService()
    • 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