public class TAccessFailureException extends TException implements TAccessFailureMessage
Constructor and Description |
---|
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.
|
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 |
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.
|
getAccessFailureException, getCause, getDeepestException, getDeepestTException, getExceptionMessage, getLocale, getMessageCode, getMessageContent, getNestedException, getResourceMessage, getRootCause, getRootTCause, getXMLMessage, getXMLMessage, hasAccessFailureException, hasCause, hasNestedException, printStackTrace, printStackTrace, printStackTrace, setLocale, toString, toXMLString
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.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 matchpublic 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.Copyright (c) 2017 Software AG. All Rights Reserved.