public class ParserException extends RuntimeException
Constructor and Description |
---|
ParserException(ParseErrorDetails details,
Location location)
Creates a
ParserException object. |
ParserException(ParseErrorDetails details,
String moduleName,
Location location)
Deprecated.
|
ParserException(Throwable cause,
ParseErrorDetails details,
String moduleName,
Location location)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ParseErrorDetails |
getErrorDetails()
Returns the detailed description of the error, or
null if none. |
Location |
getLocation()
Returns the location of the error.
|
String |
getModuleName()
Deprecated.
|
ParseTree |
getParseTree()
Returns the parse tree until the parse error happened, when
parseTree() was invoked. |
void |
setParseTree(ParseTree parseTree) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParserException(ParseErrorDetails details, Location location)
ParserException
object.details
- the ParseErrorDetails
that describes the error details.location
- the error location.@Deprecated 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.@Deprecated 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.public ParseErrorDetails getErrorDetails()
null
if none.public ParseTree getParseTree()
parseTree()
was invoked.
null
if absent.public void setParseTree(ParseTree parseTree)
@Deprecated public String getModuleName()
null
if none.public Location getLocation()
Copyright © 2013–2016 jparsec. All rights reserved.