public class ParseException extends DMLException
ERROR_MSG_DELIMITER| Constructor and Description | 
|---|
ParseException()  | 
ParseException(List<CustomErrorListener.ParseIssue> parseIssues,
              String scriptString)
This constructor takes a list of parse issues that were generated during
 script parsing and the original DML/PyDML script String. 
 | 
ParseException(String message)  | 
ParseException(String message,
              Exception e)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getMessage()
Obtain the exception message. 
 | 
List<CustomErrorListener.ParseIssue> | 
getParseIssues()
Obtain the list of parse issues that occurred. 
 | 
String | 
getScriptString()
Obtain the original DML/PyDML script string. 
 | 
boolean | 
hasParseIssues()
Does this ParseException contain a list of parse issues? 
 | 
void | 
setParseIssues(List<CustomErrorListener.ParseIssue> parseIssues)
Set the list of parse issues. 
 | 
void | 
setScriptString(String scriptString)
Set the original DML/PyDML script string. 
 | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ParseException()
public ParseException(String message)
public ParseException(List<CustomErrorListener.ParseIssue> parseIssues, String scriptString)
parseIssues - List of parse issues (syntax errors, validation errors, and
            validation warnings) generated during parsing.scriptString - The DML/PyDML script String.public List<CustomErrorListener.ParseIssue> getParseIssues()
public void setParseIssues(List<CustomErrorListener.ParseIssue> parseIssues)
parseIssues - the list of parse issuespublic String getScriptString()
public void setScriptString(String scriptString)
scriptString - the original DML/PyDML script stringpublic boolean hasParseIssues()
true if the list of parse issues exists and is
         greater than 0, false otherwisepublic String getMessage()
getMessage in class ThrowableCopyright © 2021 The Apache Software Foundation. All rights reserved.