processing.app.debug
Class RunnerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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)
|
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 |
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)
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