Package xyz.tcheeric.jev
Class JevApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
xyz.tcheeric.jev.JevException
xyz.tcheeric.jev.JevApiException
- All Implemented Interfaces:
Serializable
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 Summary
Modifier and TypeMethodDescriptionHow long the evaluator asked the caller to wait, when it said.The evaluator's identifier for the failed request, which is what its operators ask for.intstatus()Methods inherited from class xyz.tcheeric.jev.JevException
failureType, operationMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
status
public int status() -
apiErrorType
-
apiMessage
-
requestId
The evaluator's identifier for the failed request, which is what its operators ask for. -
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.
-