processing.app.debug
Class RunnerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by processing.app.debug.RunnerException
All Implemented Interfaces:
java.io.Serializable

public class RunnerException
extends java.lang.Exception

An exception with a line number attached that occurs during either compile time or run time.

See Also:
Serialized Form

Constructor Summary
RunnerException(java.lang.String message)
           
RunnerException(java.lang.String message, int file, int line, int column)
           
RunnerException(java.lang.String message, int file, int line, int column, boolean showStackTrace)
           
 
Method Summary
 int getCodeColumn()
           
 int getCodeIndex()
           
 int getCodeLine()
           
 java.lang.String getMessage()
          Override getMessage() in Throwable, so that I can set the message text outside the constructor.
 boolean hasCodeIndex()
           
 boolean hasCodeLine()
           
 void hideStackTrace()
           
 void printStackTrace()
          Nix the java.lang crap out of an exception message because it scares the children.
 void setCodeColumn(int column)
           
 void setCodeIndex(int index)
           
 void setCodeLine(int line)
           
 void setMessage(java.lang.String message)
           
 void showStackTrace()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RunnerException

public RunnerException(java.lang.String message)

RunnerException

public RunnerException(java.lang.String message,
                       int file,
                       int line,
                       int column)

RunnerException

public RunnerException(java.lang.String message,
                       int file,
                       int line,
                       int column,
                       boolean showStackTrace)
Method Detail

getMessage

public java.lang.String getMessage()
Override getMessage() in Throwable, so that I can set the message text outside the constructor.

Overrides:
getMessage in class java.lang.Throwable

setMessage

public void setMessage(java.lang.String message)

getCodeIndex

public int getCodeIndex()

setCodeIndex

public void setCodeIndex(int index)

hasCodeIndex

public boolean hasCodeIndex()

getCodeLine

public int getCodeLine()

setCodeLine

public void setCodeLine(int line)

hasCodeLine

public boolean hasCodeLine()

setCodeColumn

public void setCodeColumn(int column)

getCodeColumn

public int getCodeColumn()

showStackTrace

public void showStackTrace()

hideStackTrace

public void hideStackTrace()

printStackTrace

public void printStackTrace()
Nix the java.lang crap out of an exception message because it scares the children.

This function must be static to be used with super() in each of the constructors above.

Overrides:
printStackTrace in class java.lang.Throwable