com.ibm.di.connector.maximo.exception
Class MxConnHttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.di.connector.maximo.exception.MxConnectorException
com.ibm.di.connector.maximo.exception.MxConnIOException
com.ibm.di.connector.maximo.exception.MxConnHttpException
- All Implemented Interfaces:
- Serializable
public class MxConnHttpException
- extends MxConnIOException
TPAE IF Connector's HTTP exception. Thrown to indicate that the HTTP server
returns a response code different than 200 (HTTP OK).
- Since:
- TDI 7.1
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MxConnHttpException
public MxConnHttpException(String msg,
String targetUrl,
int responseCode,
String responseMessage,
String body)
- Constructs a new
MxConnHttpException
.
- Parameters:
targetUrl
- target URLresponseCode
- HTTP response code
getResponseCode
public final int getResponseCode()
- Returns the HTTP response code.
- Returns:
- HTTP response code
getResponseMessage
public final String getResponseMessage()
- Returns the HTTP response message.
- Returns:
- HTTP response message
getBody
public final String getBody()
- Returns the body content of the HTTP response message.
- Returns:
- body content of the HTTP response message