Class CDPAPIException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CDPAPIException
    extends java.lang.Exception
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getError()  
      int getStatus()  
      • 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getError

        public java.lang.String getError()
        Returns:
        Original "error" property from the responded error JSON from server, or null be null if the response body is not a JSON
      • getStatus

        public int getStatus()
        Returns:
        "status" property from the error JSON response, or the actual HTTP Status Code responded from server if response body is not a JSON