Class JudgeCallException

All Implemented Interfaces:
Serializable

public class JudgeCallException extends RuntimeException
Unchecked failure raised when a judge HTTP call cannot complete. The httpStatus carries the response status, or -1 for a network or timeout error, so the worker can distinguish retryable failures (5xx, timeout) from non-retryable ones (4xx).
See Also:
  • Field Details

    • NETWORK_ERROR

      public static final int NETWORK_ERROR
      Status used when the failure is a network error or timeout rather than an HTTP response.
      See Also:
  • Constructor Details

    • JudgeCallException

      public JudgeCallException(int httpStatus, String message)
    • JudgeCallException

      public JudgeCallException(int httpStatus, String message, Throwable cause)
  • Method Details

    • getHttpStatus

      public int getHttpStatus()
    • isRetryable

      public boolean isRetryable()
      Returns true when the failure is worth retrying: a timeout, network error, or 5xx response.