Package com.adobe.cq.adobeims.imsprofile
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
ARuntimeException
thrown by theImsProfileService
if an error occurs while requesting the IMS profile API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImsProfileException(String message)
ImsProfileException(String message, Throwable cause)
ImsProfileException(String message, JSONObject apiResponse)
Constructor with the possibility to add the api response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONObject
getApiResponse()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ImsProfileException
public ImsProfileException(String message)
-
ImsProfileException
public ImsProfileException(String message, JSONObject apiResponse)
Constructor with the possibility to add the api response.- Parameters:
message
- error messageapiResponse
- api response with information about the error
-
-
Method Detail
-
getApiResponse
public JSONObject getApiResponse()
- Returns:
- api response if available, might be null
-
-