net.jakubholy.jedit.autocomplete
Class ActionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.jakubholy.jedit.autocomplete.ActionException
All Implemented Interfaces:
java.io.Serializable

public class ActionException
extends java.lang.Exception

Thrown when an error condition occures while a jEdit action is triggered. For example when the user tries to display the list of remembered words for a buffer that has no autocompletion attached to self. See actions.xml

Author:
aja
See Also:
Serialized Form

Field Summary
static int NOT_ATTACHED
          Attempt to invoke an action that requires an autocomplete but no autocomplete is attached to the current buffer.
static int UNSPECIFIED
          No cause type given for this exception.
 
Constructor Summary
ActionException(int causeType)
           
ActionException(java.lang.String description)
           
 
Method Summary
 int getCauseType()
           
 java.lang.String getDescription()
          Description of the problem to display to the user.
 void setCauseType(int causeType)
          The type of the exception - specifies the cause in more detail.
 void setDescription(java.lang.String description)
          Set the description of the problem to display to the user.
 
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
 

Field Detail

UNSPECIFIED

public static final int UNSPECIFIED
No cause type given for this exception.

See Also:
Constant Field Values

NOT_ATTACHED

public static final int NOT_ATTACHED
Attempt to invoke an action that requires an autocomplete but no autocomplete is attached to the current buffer.

See Also:
Constant Field Values
Constructor Detail

ActionException

public ActionException(java.lang.String description)

ActionException

public ActionException(int causeType)
Method Detail

getDescription

public java.lang.String getDescription()
Description of the problem to display to the user.


setDescription

public void setDescription(java.lang.String description)
Set the description of the problem to display to the user.


getCauseType

public int getCauseType()
Returns:
The type of the exception - specifies the cause in more detail.

setCauseType

public void setCauseType(int causeType)
The type of the exception - specifies the cause in more detail.

Parameters:
causeType - See the constants of this class.