net.jakubholy.jedit.autocomplete
Class MaxWordsExceededException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
MaxWordsExceededException()
           
MaxWordsExceededException(int maxCountOfWords)
           
MaxWordsExceededException(java.lang.String lastWord)
           
 
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
 

Constructor Detail

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)
Method Detail

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.