Class JevApiException

All Implemented Interfaces:
Serializable

public final class JevApiException extends JevException
An error the API itself reported, carrying the HTTP status and what the API said, so a caller can tell a rejected token from a rejected question without reading prose.
See Also:
  • Method Details

    • status

      public int status()
    • apiErrorType

      public String apiErrorType()
    • apiMessage

      public String apiMessage()
    • requestId

      public Optional<String> requestId()
      The evaluator's identifier for the failed request, which is what its operators ask for.
    • requestedWait

      public Optional<Duration> requestedWait()
      How long the evaluator asked the caller to wait, when it said. Exposed because a wait longer than the client is configured to hold a request open ends the retries, and the caller may still want to reschedule the work for when the evaluator will take it.