cz.vity.freerapid.plugins.exceptions
Class YouHaveToWaitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.vity.freerapid.plugins.exceptions.ErrorDuringDownloadingException
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 |
YouHaveToWaitException
public YouHaveToWaitException(String message,
int howManySecondsToWait)
- Constructor - creates a new YouHaveToWaitException instance.
- Parameters:
message
- message to userhowManySecondsToWait
- time to wait - in seconds
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'.