com.wm.app.b2b.client
Class TXException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.wm.util.LocalizedException
com.wm.lang.ns.NSException
com.wm.app.b2b.client.ServiceException
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 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 |
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.
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.