miSim

misim.editor
Class EditorException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--misim.MiSimException
                    |
                    +--misim.editor.EditorException
All Implemented Interfaces:
java.io.Serializable

public class EditorException
extends MiSimException

The EditorException class is used to store infomation on compilation or assembly errors against the lines that generated those errors. It extends MiSimException to include information on the Token that caused the exception to occur.

See Also:
Serialized Form

Fields inherited from class misim.MiSimException
errorText, errorType
 
Constructor Summary
EditorException(Token token, int errorType)
          Create a new EditorException with the given error type.
EditorException(Token token, int errorType, int value)
          Create a new EditorException with the given error type, and the given integer parameter.
EditorException(Token token, int errorType, java.lang.String value)
          Create a new EditorException with the given error type, and the given String parameter.
 
Method Summary
 Token getToken()
          Get the token that was identified as the cause of this exception
 java.lang.String toString()
          Return a String that describes the MiSimException.
 
Methods inherited from class misim.MiSimException
exceptionString, getType, getValues
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EditorException

public EditorException(Token token,
                       int errorType)
Create a new EditorException with the given error type.
Parameters:
errorType - The message ID for this exception

EditorException

public EditorException(Token token,
                       int errorType,
                       int value)
Create a new EditorException with the given error type, and the given integer parameter. This will be inserted into the Exception message when toString() is called for this exception.
Parameters:
errorType - The message ID for this exception
value - An integer value relevant to this exception

EditorException

public EditorException(Token token,
                       int errorType,
                       java.lang.String value)
Create a new EditorException with the given error type, and the given String parameter. This will be inserted into the Exception message when toString() is called for this exception.
Parameters:
errorType - The message ID for this exception
value - An String value relevant to this exception
Method Detail

getToken

public Token getToken()
Get the token that was identified as the cause of this exception
Returns:
The token associated with this exception

toString

public java.lang.String toString()
Description copied from class: MiSimException
Return a String that describes the MiSimException. The String is generated from the miSim Txt message class, using the errorType as the message ID, and any additional parameters passed when the MiSimException was created as parameters to be substituted into the message by the Txt class.
Overrides:
toString in class MiSimException
Following copied from class: misim.MiSimException
Returns:
A String describing this exception

miSim