public class SyntaxErrorException extends Exception
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Constructor and Description |
---|
SyntaxErrorException()
Constructs a new exception with
null as its detail message. |
SyntaxErrorException(String message)
Constructs a new exception with
null as its detail message. |
SyntaxErrorException(String message,
int[] errorLocations,
List errorDescriptions)
Constructs a new exception with the specified detail message.The cause is
not initialized, and may subsequently be initialized by a call to
Throwable.initCause(java.lang.Throwable) . |
SyntaxErrorException(String message,
Throwable cause)
Constructs a new exception with
null as its detail message. |
Modifier and Type | Method and Description |
---|---|
void |
addStackItems(Collection<ScriptLocation> loc)
Populate the stack.
|
Element |
getElement() |
List |
getErrorDescriptions() |
int[] |
getErrorLocations() |
int |
getLineIndex() |
File |
getScriptFile() |
List<ScriptLocation> |
getStack()
Get the stack which locates the place of the error including the
procedure calls (levels).
|
void |
setElement(Element element) |
void |
setLineIndex(int lineIndex) |
void |
setScriptFile(File scriptFile) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SyntaxErrorException()
null
as its detail message.
The cause is not initialized, and may subsequently be initialized by a
call to Throwable.initCause(java.lang.Throwable)
.public SyntaxErrorException(String message)
null
as its detail message.
The cause is not initialized, and may subsequently be initialized by a
call to Throwable.initCause(java.lang.Throwable)
.message
- the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage()
method.public SyntaxErrorException(String message, Throwable cause)
null
as its detail message.
The cause is not initialized, and may subsequently be initialized by a
call to Throwable.initCause(java.lang.Throwable)
.message
- the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage()
method.cause
- throwable causing this exception to be thrown.public SyntaxErrorException(String message, int[] errorLocations, List errorDescriptions)
Throwable.initCause(java.lang.Throwable)
.message
- the detail message. The detail message is saved for later
retrieval by the Throwable.getMessage()
method.errorLocations
- error locations (indices).errorDescriptions
- the list of error descriptions.public int[] getErrorLocations()
public List getErrorDescriptions()
public Element getElement()
public void setElement(Element element)
public File getScriptFile()
public void setScriptFile(File scriptFile)
public int getLineIndex()
public void setLineIndex(int lineIndex)
public List<ScriptLocation> getStack()
public void addStackItems(Collection<ScriptLocation> loc)
loc
- a collection of stack items (script locations).