org.sadun.util.watchdog.listeners
Class MaxRetryExceededException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.sadun.util.watchdog.listeners.MaxRetryExceededException
All Implemented Interfaces:
java.io.Serializable

public class MaxRetryExceededException
extends java.lang.Exception

An exception raised when a wait/retry policy is abandoned after a certain number of retries.

Version:
1.0
Author:
Cristiano Sadun
See Also:
Serialized Form

Constructor Summary
MaxRetryExceededException(int retries, java.util.List outcomes)
          Create an exception
 
Method Summary
 int getAttemptedRetriesCount()
          Return a count of the attempted retries
 WatchDogException[] getOutcomes()
          Return the ordered results of the failed retries.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaxRetryExceededException

public MaxRetryExceededException(int retries,
                                 java.util.List outcomes)
Create an exception

Method Detail

getAttemptedRetriesCount

public int getAttemptedRetriesCount()
Return a count of the attempted retries

Returns:
a count of the attempted retries

getOutcomes

public WatchDogException[] getOutcomes()
Return the ordered results of the failed retries.

Returns:
the ordered results of the failed retries.