|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sleep.error.SyntaxError
public class SyntaxError
A class containing syntax error information. A SyntaxError object is passed by a YourCodeSucksException.
YourCodeSucksException
Field Summary | |
---|---|
protected java.lang.String |
code
|
protected java.lang.String |
description
|
protected int |
lineNo
|
protected java.lang.String |
marker
|
Constructor Summary | |
---|---|
SyntaxError(java.lang.String _description,
java.lang.String _code,
int _lineNo)
construct a syntax error object, but enough about me... |
|
SyntaxError(java.lang.String _description,
java.lang.String _code,
int _lineNo,
java.lang.String _marker)
construct a syntax error object, but enough about me... |
Method Summary | |
---|---|
java.lang.String |
getCodeSnippet()
return an isolated snippet of code from where the error occured |
java.lang.String |
getDescription()
return a best guess description of what the error in the code might actually be |
int |
getLineNumber()
return the line number in the file where the error occured. |
java.lang.String |
getMarker()
return a marker string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String description
protected java.lang.String code
protected java.lang.String marker
protected int lineNo
Constructor Detail |
---|
public SyntaxError(java.lang.String _description, java.lang.String _code, int _lineNo)
public SyntaxError(java.lang.String _description, java.lang.String _code, int _lineNo, java.lang.String _marker)
Method Detail |
---|
public java.lang.String getMarker()
public java.lang.String getDescription()
public java.lang.String getCodeSnippet()
public int getLineNumber()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |