sleep.error

Class SyntaxError

public class SyntaxError extends Object

A class containing syntax error information. A SyntaxError object is passed by a YourCodeSucksException.

See Also: YourCodeSucksException

Field Summary
protected Stringcode
protected Stringdescription
protected intlineNo
protected Stringmarker
Constructor Summary
SyntaxError(String _description, String _code, int _lineNo)
construct a syntax error object, but enough about me... how about you?
SyntaxError(String _description, String _code, int _lineNo, String _marker)
construct a syntax error object, but enough about me... how about you?
Method Summary
StringgetCodeSnippet()
return an isolated snippet of code from where the error occured
StringgetDescription()
return a best guess description of what the error in the code might actually be
intgetLineNumber()
return the line number in the file where the error occured.
StringgetMarker()
return a marker string

Field Detail

code

protected String code

description

protected String description

lineNo

protected int lineNo

marker

protected String marker

Constructor Detail

SyntaxError

public SyntaxError(String _description, String _code, int _lineNo)
construct a syntax error object, but enough about me... how about you?

SyntaxError

public SyntaxError(String _description, String _code, int _lineNo, String _marker)
construct a syntax error object, but enough about me... how about you?

Method Detail

getCodeSnippet

public String getCodeSnippet()
return an isolated snippet of code from where the error occured

getDescription

public String getDescription()
return a best guess description of what the error in the code might actually be

getLineNumber

public int getLineNumber()
return the line number in the file where the error occured.

getMarker

public String getMarker()
return a marker string