public class THTTPCommunicationException extends TCommunicationException
Constructor and Description |
---|
THTTPCommunicationException(int responseCode,
java.lang.String messageText,
java.lang.Exception cause,
java.util.Locale locale)
Initializes the invocation failure message with the given
response code and message text.
|
THTTPCommunicationException(int responseCode,
java.lang.String messageText,
java.util.Locale locale)
Initializes the invocation failure message with the given
response code and message text.
|
THTTPCommunicationException(TResourceId resourceId,
java.lang.Exception nestedException,
java.util.Locale locale)
Initializes a THTTPInvocationFailureException instance with a resource message and an internal nested exception.
|
THTTPCommunicationException(TResourceId resourceId,
java.util.Locale locale)
Initializes a THTTPInvocationFailureException instance with a resource message.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element |
getAdditionalXMLMessageContent(org.w3c.dom.Document document)
Gets an additional message content part.
|
java.lang.String |
getMessageText()
Gets the message text.
|
int |
getReponseCode()
Gets the response code.
|
boolean |
matchesResponseCode(int matchValue)
Indicates if the failure message matches the given response code.
|
boolean |
matchesResponseCode(int startValue,
int endValue)
Indicates if the failure message matches a response code that lies in
between the specified response code value range including the startValue and the endValue.
|
isRetryPossible, setNoRetryPossible, setRetryPossible
getAccessFailureException, getCause, getDeepestException, getDeepestTException, getExceptionMessage, getLocale, getMessageCode, getMessageContent, getNestedException, getResourceMessage, getRootCause, getRootTCause, getXMLMessage, getXMLMessage, hasAccessFailureException, hasCause, hasNestedException, printStackTrace, printStackTrace, printStackTrace, setLocale, toString, toXMLString
public THTTPCommunicationException(int responseCode, java.lang.String messageText, java.util.Locale locale)
responseCode
- the HTTP response code.messageText
- the message text.public THTTPCommunicationException(int responseCode, java.lang.String messageText, java.lang.Exception cause, java.util.Locale locale)
responseCode
- the HTTP response code.messageText
- the message text.public THTTPCommunicationException(TResourceId resourceId, java.util.Locale locale)
resourceId
- containing the message of this exceptionTResourceId
public THTTPCommunicationException(TResourceId resourceId, java.lang.Exception nestedException, java.util.Locale locale)
resourceId
- containing the message of this exceptionnestedException
- can be nested into a TException if it is givenTResourceId
public int getReponseCode()
public java.lang.String getMessageText()
public boolean matchesResponseCode(int matchValue)
the
- matchValue the value to matchpublic boolean matchesResponseCode(int startValue, int endValue)
startValue
- the start for the return value range.endValue
- the end of the return value range.protected org.w3c.dom.Element getAdditionalXMLMessageContent(org.w3c.dom.Document document)
getAdditionalXMLMessageContent
in class TException
Copyright (c) 2017 Software AG. All Rights Reserved.