|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.softwareag.tamino.db.api.common.TException
com.softwareag.tamino.db.api.invocation.TInvocationException
com.softwareag.tamino.db.api.invocation.TCommunicationException
com.softwareag.tamino.db.api.invocation.http.THTTPCommunicationException
public class THTTPCommunicationException
THTTPCommunicationException represents a exception that contains the information provided by the HTTP communication protocoll.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.softwareag.tamino.db.api.invocation.TInvocationException |
---|
isRetryPossible, setNoRetryPossible, setRetryPossible |
Methods inherited from class com.softwareag.tamino.db.api.common.TException |
---|
getAccessFailureException, getCause, getDeepestException, getDeepestTException, getExceptionMessage, getLocale, getMessageCode, getMessageContent, getNestedException, getResourceMessage, getRootCause, getRootTCause, getXMLMessage, getXMLMessage, hasAccessFailureException, hasCause, hasNestedException, printStackTrace, printStackTrace, printStackTrace, setLocale, toString, toXMLString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
public int getReponseCode()
public java.lang.String getMessageText()
public boolean matchesResponseCode(int matchValue)
the
- matchValue the value to match
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |