com.softwareag.tamino.db.api.invocation
Class TInvocationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.softwareag.tamino.db.api.common.TException
              extended by com.softwareag.tamino.db.api.invocation.TInvocationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TAuthorizationException, TCommunicationException, THTTPInvocationFailureException, TInvocationRequestNotWritableException, TInvocationRetryHandlerException

public class TInvocationException
extends TException

TInvocationException is a general exception which will be thrown on failures in HTTP invocation layer

Version:
$Revision: 1.12 $
Author:
Marcus Schreyer
See Also:
Serialized Form

Constructor Summary
TInvocationException(java.lang.String message, java.util.Locale locale)
          Initializes a TInvocationException instance with a message.
TInvocationException(java.lang.String message, java.lang.Throwable nestedException, java.util.Locale locale)
          Initializes a TInvocationException instance with a message and an internal nested exception.
TInvocationException(java.lang.Throwable nestedException, java.util.Locale locale)
          Initializes a TInvocationException instance with an internal nested exception.
TInvocationException(TResourceId resourceId, java.util.Locale locale)
          Initializes a TInvocationException instance with a resource message.
TInvocationException(TResourceId resourceId, java.lang.Throwable nestedException, java.util.Locale locale)
          Initializes a TInvocationException instance with a resource message and an internal nested exception.
 
Method Summary
 boolean isRetryPossible()
          Chekc whether a retry might be possible.
 TInvocationException setNoRetryPossible()
          Set the retry hint to false.
 TInvocationException setRetryPossible()
          Set the retry hint to true.
 
Methods inherited from class com.softwareag.tamino.db.api.common.TException
getAccessFailureException, getAdditionalXMLMessageContent, 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

TInvocationException

public TInvocationException(java.lang.String message,
                            java.util.Locale locale)
Initializes a TInvocationException instance with a message.

Parameters:
message - is handed further to the base class.
locale - the locale

TInvocationException

public TInvocationException(java.lang.String message,
                            java.lang.Throwable nestedException,
                            java.util.Locale locale)
Initializes a TInvocationException instance with a message and an internal nested exception.

Parameters:
message - is handed further to the base class.
nestedException - can be nested into a TInvocationException if it is given.
locale - the locale

TInvocationException

public TInvocationException(java.lang.Throwable nestedException,
                            java.util.Locale locale)
Initializes a TInvocationException instance with an internal nested exception.

Parameters:
nestedException - can be nested into a TInvocationException if it is given.
locale - the locale

TInvocationException

public TInvocationException(TResourceId resourceId,
                            java.util.Locale locale)
Initializes a TInvocationException instance with a resource message.

Parameters:
resourceId - containing the message of this exception
locale - the locale
See Also:
TResourceId

TInvocationException

public TInvocationException(TResourceId resourceId,
                            java.lang.Throwable nestedException,
                            java.util.Locale locale)
Initializes a TInvocationException instance with a resource message and an internal nested exception.

Parameters:
resourceId - containing the message of this exception
nestedException - can be nested into a TException if it is given
locale - the locale
See Also:
TResourceId
Method Detail

setNoRetryPossible

public TInvocationException setNoRetryPossible()
Set the retry hint to false.

Returns:
this exception, so that it may be thrown directly after creation, e.g. throw new TInvocationException( .. ).setNoRetryPossible()

setRetryPossible

public TInvocationException setRetryPossible()
Set the retry hint to true.

Returns:
this exception, so that it may be thrown directly after creation, e.g. throw new TInvocationException( .. ).setRetryPossible()

isRetryPossible

public boolean isRetryPossible()
Chekc whether a retry might be possible. This check navigates throw the nested exceptions and returns true when one of the exceptions signals true and false if all exceptions signal false.

Returns:
retry possible (true) or not (false).


Copyright (c) 2013 Software AG. All Rights Reserved.