Class ImsProfileException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ImsProfileException
    extends java.lang.RuntimeException
    A RuntimeException thrown by the ImsProfileService if an error occurs while requesting the IMS profile API.
    See Also:
    Serialized Form
    • 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ImsProfileException

        public ImsProfileException​(java.lang.String message)
      • ImsProfileException

        public ImsProfileException​(java.lang.String message,
                                   java.lang.Throwable cause)
      • ImsProfileException

        public ImsProfileException​(java.lang.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 Detail

      • getApiResponse

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