Class CodesignException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.csi.codesign.CodesignException
All Implemented Interfaces:
Serializable

public class CodesignException extends Exception
Exception carrying HTTP status code and response body from a failed SignPath API call.
See Also:
  • Constructor Details

    • CodesignException

      public CodesignException(int httpStatus, String responseBody)
      Constructs a new exception with the HTTP status code and response body from a failed API call.
      Parameters:
      httpStatus - the HTTP status code returned by the SignPath API
      responseBody - the response body returned by the SignPath API
    • CodesignException

      public CodesignException(String message, Throwable cause)
      Constructs a new exception with the specified detail message and cause.
      Parameters:
      message - the detail message
      cause - the cause of this exception
  • Method Details

    • httpStatus

      public int httpStatus()
      Returns the HTTP status code from the failed SignPath API call, or -1 if not applicable.
      Returns:
      the HTTP status code
    • responseBody

      public String responseBody()
      Returns the response body from the failed SignPath API call, or null if not applicable.
      Returns:
      the response body