Class ImsProfileException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.adobe.cq.adobeims.imsprofile.ImsProfileException
All Implemented Interfaces:
Serializable

public class ImsProfileException extends RuntimeException
A RuntimeException thrown by the ImsProfileService if an error occurs while requesting the IMS profile API.
See Also:
  • Constructor Details

    • ImsProfileException

      public ImsProfileException(String message)
    • ImsProfileException

      public ImsProfileException(String message, Throwable cause)
    • ImsProfileException

      public ImsProfileException(String message, JSONObject apiResponse)
      Constructor with the possibility to add the api response.
      Parameters:
      message - error message
      apiResponse - api response with information about the error
  • Method Details

    • getApiResponse

      public JSONObject getApiResponse()
      Returns:
      api response if available, might be null