net.jakubholy.jedit.autocomplete
Class MaxWordsExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.jakubholy.jedit.autocomplete.MaxWordsExceededException
- All Implemented Interfaces:
- java.io.Serializable
public class MaxWordsExceededException
- extends java.lang.Exception
Thrown when we try to remember another word (completion) but the number of
remembered words would exceed the maximum allowed (set in preferences).
- Author:
- Jakub Holy
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getLastWord()
Return the word that we wanted to remember but couldn't because of the limit. |
void |
setLastWord(java.lang.String lastWord)
Set the word that we wanted to remember but couldn't because of the limit. |
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 |
MaxWordsExceededException
public MaxWordsExceededException()
MaxWordsExceededException
public MaxWordsExceededException(java.lang.String lastWord)
- Parameters:
lastWord
- The word that couldn't be added because
the limit would be exceeded.
MaxWordsExceededException
public MaxWordsExceededException(int maxCountOfWords)
getLastWord
public java.lang.String getLastWord()
- Return the word that we wanted to remember but couldn't because of the limit.
setLastWord
public void setLastWord(java.lang.String lastWord)
- Set the word that we wanted to remember but couldn't because of the limit.