Package com.day.cq.mcm.campaign
Class ConnectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.day.cq.mcm.campaign.CampaignException
com.day.cq.mcm.campaign.ACConnectorException
com.day.cq.mcm.campaign.ConnectionException
- All Implemented Interfaces:
Serializable
Thrown when a connection to Adobe Campaign fails or returns
with an unexpected status code.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionException(String message) ConnectionException(String message, int statusCode) ConnectionException(String message, Throwable cause) ConnectionException(String message, Throwable cause, int statusCode) -
Method Summary
Modifier and TypeMethodDescriptionintReturns 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
-
Constructor Details
-
ConnectionException
-
ConnectionException
-
ConnectionException
-
ConnectionException
-
-
Method Details
-
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
-