Package org.qdl_lang.exceptions
Class QDLExceptionWithTrace
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- edu.uiuc.ncsa.security.core.exceptions.GeneralException
-
- org.qdl_lang.exceptions.QDLException
-
- org.qdl_lang.exceptions.QDLExceptionWithTrace
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FunctionArgException
,ImportException
,IndexError
,IntrinsicViolation
,UndefinedFunctionException
,UnknownSymbolException
public class QDLExceptionWithTrace extends QDLException
An exception when evaluating a set of statements. This gives the statement number (not the line number, which is close to impossible to determine given how Antlr handles whitespace).Created by Jeff Gaynor
on 11/3/21 at 4:08 PM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QDLExceptionWithTrace(String message, Throwable cause, Statement statement)
QDLExceptionWithTrace(String message, Statement statement)
QDLExceptionWithTrace(Throwable cause, Statement statement)
QDLExceptionWithTrace(Statement statement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getScriptName()
List<String>
getScriptStack()
Statement
getStatement()
boolean
hasScriptStack()
boolean
hasStatement()
boolean
isScript()
void
setScript(boolean script)
void
setScriptName(String scriptName)
void
setScriptStack(List<String> scriptStack)
void
setStatement(Statement statement)
String
stackTrace()
Uses thescriptStack
to create a trace of scripts.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
QDLExceptionWithTrace
public QDLExceptionWithTrace(Statement statement)
-
-
Method Detail
-
hasStatement
public boolean hasStatement()
-
getStatement
public Statement getStatement()
-
setStatement
public void setStatement(Statement statement)
-
isScript
public boolean isScript()
-
setScript
public void setScript(boolean script)
-
getScriptName
public String getScriptName()
-
setScriptName
public void setScriptName(String scriptName)
-
hasScriptStack
public boolean hasScriptStack()
-
stackTrace
public String stackTrace()
Uses thescriptStack
to create a trace of scripts.- Returns:
-
-