Class ConnectionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConnectionException
    extends ACConnectorException
    Thrown when a connection to Adobe Campaign fails or returns with an unexpected status code.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStatusCode()
      Returns the response status code of the request to Adobe Campaign if this exception was caused by receiving an unexpected status code.
      • 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

      • ConnectionException

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

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

        public ConnectionException​(java.lang.String message,
                                   int statusCode)
      • ConnectionException

        public ConnectionException​(java.lang.String message,
                                   java.lang.Throwable cause,
                                   int statusCode)
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Returns the response status code of the request to Adobe Campaign if this exception was caused by receiving an unexpected status code. Otherwise it returns -1;
        Returns:
        The response status code or -1