org.pandora.self
Class SelfParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.pandora.PandoraException
                  extended by org.pandora.self.SelfParseException
All Implemented Interfaces:
java.io.Serializable

public class SelfParseException
extends PandoraException

Self compiler exception.

See Also:
Serialized Form

Constructor Summary
SelfParseException(java.lang.String message)
           
SelfParseException(java.lang.String message, TextStream stream)
           
SelfParseException(java.lang.String message, TextStream stream, java.lang.Throwable exception)
           
SelfParseException(java.lang.String message, java.lang.Throwable exception)
           
 
Method Summary
 java.lang.String getCode()
           
 int getColumnNumber()
           
 java.lang.String getLine()
           
 int getLineNumber()
           
 java.lang.String getMessage()
           
static SelfParseException invalidCharacter(char found, char expected, TextStream stream)
           
static SelfParseException invalidWord(java.lang.String found, java.lang.String expected, TextStream stream)
           
 void setCode(java.lang.String code)
           
 void setColumnNumber(int columnNumber)
           
 void setLine(java.lang.String line)
           
 void setLineNumber(int lineNumber)
           
static SelfParseException unexpectedEndOfFile(char expected, TextStream stream)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelfParseException

public SelfParseException(java.lang.String message)

SelfParseException

public SelfParseException(java.lang.String message,
                          TextStream stream)

SelfParseException

public SelfParseException(java.lang.String message,
                          TextStream stream,
                          java.lang.Throwable exception)

SelfParseException

public SelfParseException(java.lang.String message,
                          java.lang.Throwable exception)
Method Detail

invalidCharacter

public static SelfParseException invalidCharacter(char found,
                                                  char expected,
                                                  TextStream stream)

unexpectedEndOfFile

public static SelfParseException unexpectedEndOfFile(char expected,
                                                     TextStream stream)

invalidWord

public static SelfParseException invalidWord(java.lang.String found,
                                             java.lang.String expected,
                                             TextStream stream)

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getCode

public java.lang.String getCode()

setCode

public void setCode(java.lang.String code)

getLineNumber

public int getLineNumber()

setLineNumber

public void setLineNumber(int lineNumber)

getColumnNumber

public int getColumnNumber()

setColumnNumber

public void setColumnNumber(int columnNumber)

getLine

public java.lang.String getLine()

setLine

public void setLine(java.lang.String line)