Package io.wcm.tooling.commons.packmgr
Class PackageManagerHttpActionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.wcm.tooling.commons.packmgr.PackageManagerHttpActionException
- All Implemented Interfaces:
Serializable
Exception during package manager HTTP actions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPackageManagerHttpActionException(String message) PackageManagerHttpActionException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionforHttpError(String url, org.apache.http.StatusLine statusLine, String responseString) Create exception instance for I/O exception.forIOException(String url, IOException ex) Create exception instance for I/O exception.forJSONException(String url, String responseString, com.fasterxml.jackson.core.JsonProcessingException ex) Create exception instance for Jackson JSON processing exception.forJSONException(String url, String responseString, org.json.JSONException ex) Create exception instance for JSON exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PackageManagerHttpActionException
- Parameters:
message- Messagecause- Cause
-
PackageManagerHttpActionException
- Parameters:
message- Message
-
-
Method Details
-
forIOException
Create exception instance for I/O exception.- Parameters:
url- HTTP url calledex- I/O exception- Returns:
- Exception instance
-
forJSONException
public static PackageManagerHttpActionException forJSONException(String url, String responseString, org.json.JSONException ex) Create exception instance for JSON exception.- Parameters:
url- HTTP url calledresponseString- Response stringex- JSON exception- Returns:
- Exception instance
-
forJSONException
public static PackageManagerHttpActionException forJSONException(String url, String responseString, com.fasterxml.jackson.core.JsonProcessingException ex) Create exception instance for Jackson JSON processing exception.- Parameters:
url- HTTP url calledresponseString- Response stringex- Jackson JSON processing exception- Returns:
- Exception instance
-
forHttpError
public static PackageManagerHttpActionException forHttpError(String url, org.apache.http.StatusLine statusLine, String responseString) Create exception instance for I/O exception.- Parameters:
url- HTTP url calledstatusLine- HTTP status lineresponseString- Response string or null- Returns:
- Exception instance
-