Package org.eclipse.csi.codesign
Class CodesignException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.csi.codesign.CodesignException
- All Implemented Interfaces:
Serializable
Exception carrying HTTP status code and response body from a failed SignPath API call.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCodesignException(int httpStatus, String responseBody) Constructs a new exception with the HTTP status code and response body from a failed API call.CodesignException(String message, Throwable cause) Constructs a new exception with the specified detail message and cause. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the HTTP status code from the failed SignPath API call, or-1if not applicable.Returns the response body from the failed SignPath API call, ornullif not applicable.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CodesignException
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 APIresponseBody- the response body returned by the SignPath API
-
CodesignException
Constructs a new exception with the specified detail message and cause.- Parameters:
message- the detail messagecause- the cause of this exception
-
-
Method Details
-
httpStatus
public int httpStatus()Returns the HTTP status code from the failed SignPath API call, or-1if not applicable.- Returns:
- the HTTP status code
-
responseBody
Returns the response body from the failed SignPath API call, ornullif not applicable.- Returns:
- the response body
-