|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.codehaus.jparsec.error.ParserException
public class ParserException
Is thrown when any grammar error happens or any exception is thrown during parsing.
Constructor Summary | |
---|---|
ParserException(ParseErrorDetails details,
String moduleName,
Location location)
Creates a ParserException object. |
|
ParserException(Throwable cause,
ParseErrorDetails details,
String moduleName,
Location location)
Creates a ParserException object. |
Method Summary | |
---|---|
ParseErrorDetails |
getErrorDetails()
Returns the detailed description of the error, or null if none. |
Location |
getLocation()
Returns the location of the error. |
String |
getModuleName()
Returns the module name, or null if none. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParserException(ParseErrorDetails details, String moduleName, Location location)
ParserException
object.
details
- the ParseErrorDetails
that describes the error details.moduleName
- the module name.location
- the error location.public ParserException(Throwable cause, ParseErrorDetails details, String moduleName, Location location)
ParserException
object.
cause
- the exception that causes this.details
- the ParseErrorDetails
that describes the error details.moduleName
- the module name.location
- the location.Method Detail |
---|
public ParseErrorDetails getErrorDetails()
null
if none.
public String getModuleName()
null
if none.
public Location getLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |