Package io.jenkins.plugins.finitestate
Class FiniteStateApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.jenkins.plugins.finitestate.FiniteStateApiException
- All Implemented Interfaces:
Serializable
Raised when a Finite State v0 API call fails (non-2xx response, or exhausted retries on a
transient failure). Carries the HTTP status (0 for network-level failures) and a message that
already includes the API's error body and a human-readable hint where available, so callers can
surface it verbatim to the build log (FR-9).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFiniteStateApiException(int statusCode, String message) FiniteStateApiException(int statusCode, String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionintHTTP status code, or 0 when the failure was network-level (no response received).Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FiniteStateApiException
-
FiniteStateApiException
-
-
Method Details
-
getStatusCode
public int getStatusCode()HTTP status code, or 0 when the failure was network-level (no response received).
-