Class FiniteStateApiException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.jenkins.plugins.finitestate.FiniteStateApiException
All Implemented Interfaces:
Serializable

public class FiniteStateApiException extends Exception
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 Details

    • FiniteStateApiException

      public FiniteStateApiException(int statusCode, String message)
    • FiniteStateApiException

      public FiniteStateApiException(int statusCode, String message, Throwable cause)
  • Method Details

    • getStatusCode

      public int getStatusCode()
      HTTP status code, or 0 when the failure was network-level (no response received).