com.wm.app.b2b.client
Class TXException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.wm.util.LocalizedException
              extended by com.wm.lang.ns.NSException
                  extended by com.wm.app.b2b.client.ServiceException
                      extended by com.wm.app.b2b.client.TXException
All Implemented Interfaces:
java.io.Serializable

public class TXException
extends ServiceException

This class extends ServiceException. It is thrown when a request submitted through the Job Manager fails for any of the following reasons:

- It exceeded its time-to-live (TTL)
- It exceeded its retry limits
- A heuristic failure occurred on the server

See Also:
Serialized Form

Constructor Summary
TXException(TXJobException e)
          Constructs a TXException with the information from the specified TXJobException object.
 
Method Summary
 boolean isExceededRetries()
          Returns a boolean indicating whether the request failed because it exceeded its retry limit.
 boolean isHeuristicFailure()
          Returns a boolean indicating whether the request failed due to a heuristic failure.
 
Methods inherited from class com.wm.app.b2b.client.ServiceException
getErrorDump, getErrorInfo, getErrorType, getLocalizedMessage, getMessage, getOriginalException, reThrow, toString
 
Methods inherited from class com.wm.util.LocalizedException
getErrorDetails, getLocalizedMessage, getMsgId, getMsgOnly, getMsgOnly, getWrappedException, setErrorDetails
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TXException

public TXException(TXJobException e)
Constructs a TXException with the information from the specified TXJobException object.

Parameters:
e - A TXJobException object containing the error information.
Method Detail

isHeuristicFailure

public boolean isHeuristicFailure()
Returns a boolean indicating whether the request failed due to a heuristic failure.

Returns:
true if heuristic failure occurred; false otherwise.

isExceededRetries

public boolean isExceededRetries()
Returns a boolean indicating whether the request failed because it exceeded its retry limit.

Returns:
true if the number of retries was exceeded; false otherwise.