Class PackageManagerHttpActionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.wcm.tooling.commons.packmgr.PackageManagerHttpActionException
All Implemented Interfaces:
Serializable

public final class PackageManagerHttpActionException extends RuntimeException
Exception during package manager HTTP actions.
See Also:
  • Constructor Details

    • PackageManagerHttpActionException

      public PackageManagerHttpActionException(String message, Throwable cause)
      Parameters:
      message - Message
      cause - Cause
    • PackageManagerHttpActionException

      public PackageManagerHttpActionException(String message)
      Parameters:
      message - Message
  • Method Details

    • forIOException

      public static PackageManagerHttpActionException forIOException(String url, IOException ex)
      Create exception instance for I/O exception.
      Parameters:
      url - HTTP url called
      ex - 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 called
      responseString - Response string
      ex - 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 called
      responseString - Response string
      ex - 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 called
      statusLine - HTTP status line
      responseString - Response string or null
      Returns:
      Exception instance