|
|||||||||
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.common.TAccessFailureException
public class TAccessFailureException
TAccessFailureException represents a message that contains all the information provided by Tamino in case a specific access operation fails. This includes the return value, error code, message text and the message line. Each of these properties can be obtained by the appropiate access method.
Constructor Summary | |
---|---|
TAccessFailureException(java.io.InputStream errorStream,
java.util.Locale locale)
Initializes the access failure message with the given error stream expecting a Tamino error response. |
|
TAccessFailureException(java.util.Locale locale)
Initialize the access failure exception with the given locale. |
|
TAccessFailureException(java.lang.String returnValue,
java.lang.String code,
java.lang.String messageText,
java.lang.String messageLine,
java.util.Locale locale)
Initializes the access failure message with the given return value, error code, message text and message line. |
Method Summary | |
---|---|
protected org.w3c.dom.Element |
getAdditionalXMLMessageContent(org.w3c.dom.Document document)
Gets an additional message content part. |
java.lang.String |
getCode()
Gets the error code. |
java.lang.String |
getMessage()
Returns the detail message of this TAccessFailureException. |
java.lang.String |
getMessageLine()
Gets the message line. |
java.lang.String |
getMessageText()
Gets the message text. |
java.lang.String |
getReturnValue()
Gets the return value. |
boolean |
matchesReturnValue(java.lang.String returnValue)
Indicates if the access failure message matches the given return value. |
boolean |
matchesReturnValue(java.lang.String startValue,
java.lang.String endValue)
Indicates if the access failure message matches a return value that lies in between the specified return value range including the startValue and the endValue. |
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, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TAccessFailureException(java.lang.String returnValue, java.lang.String code, java.lang.String messageText, java.lang.String messageLine, java.util.Locale locale)
returnValue
- the return value.code
- the return code.messageText
- the message text.messageLine
- the message line.locale
- the locale.public TAccessFailureException(java.util.Locale locale)
locale
- the locale.public TAccessFailureException(java.io.InputStream errorStream, java.util.Locale locale)
errorStream
- the error streamlocale
- the locale.Method Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getReturnValue()
getReturnValue
in interface TAccessFailureMessage
public java.lang.String getCode()
getCode
in interface TAccessFailureMessage
public java.lang.String getMessageText()
getMessageText
in interface TAccessFailureMessage
public java.lang.String getMessageLine()
getMessageLine
in interface TAccessFailureMessage
protected org.w3c.dom.Element getAdditionalXMLMessageContent(org.w3c.dom.Document document)
getAdditionalXMLMessageContent
in class TException
public boolean matchesReturnValue(java.lang.String returnValue)
matchesReturnValue
in interface TAccessFailureMessage
the
- returnValue to match
public boolean matchesReturnValue(java.lang.String startValue, java.lang.String endValue)
matchesReturnValue
in interface TAccessFailureMessage
startValue
- the start for the return value range.endValue
- the end of the return value range.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |