cz.vity.freerapid.plugins.exceptions
Class YouHaveToWaitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by cz.vity.freerapid.plugins.exceptions.ErrorDuringDownloadingException
              extended by cz.vity.freerapid.plugins.exceptions.YouHaveToWaitException
All Implemented Interfaces:
Serializable

public class YouHaveToWaitException
extends ErrorDuringDownloadingException

User has to wait some given time to be able download again

Author:
Vity
See Also:
Serialized Form

Constructor Summary
YouHaveToWaitException(String message, int howManySecondsToWait)
          Constructor - creates a new YouHaveToWaitException instance.
 
Method Summary
 int getHowManySecondsToWait()
          Method getHowManySecondsToWait returns the howManySecondsToWait of this YouHaveToWaitException object.
 void setHowManySecondsToWait(int howManySecondsToWait)
          Setter for property 'howManySecondsToWait'.
 
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

YouHaveToWaitException

public YouHaveToWaitException(String message,
                              int howManySecondsToWait)
Constructor - creates a new YouHaveToWaitException instance.

Parameters:
message - message to user
howManySecondsToWait - time to wait - in seconds
Method Detail

getHowManySecondsToWait

public int getHowManySecondsToWait()
Method getHowManySecondsToWait returns the howManySecondsToWait of this YouHaveToWaitException object.

Returns:
the howManySecondsToWait (type int) of this YouHaveToWaitException object.

setHowManySecondsToWait

public void setHowManySecondsToWait(int howManySecondsToWait)
Setter for property 'howManySecondsToWait'.

Parameters:
howManySecondsToWait - Value to set for property 'howManySecondsToWait'.