public class Pp2ParseException extends RuntimeException
The current engine always recovers ordinary parse failures through its
fallback renderers and surfaces them as
FormatDiagnostics on Pp2FormatResult. It
does not read Pp2FormatOptions.tolerantMode and does not currently
construct this exception. The type is retained so strict-mode support can
be added without introducing a new public exception later.
| Constructor and Description |
|---|
Pp2ParseException(String message) |
Pp2ParseException(String message,
List<TSyntaxError> parserErrors) |
Pp2ParseException(String message,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
List<TSyntaxError> |
getParserErrors()
Immutable view of the parser diagnostics that triggered this failure.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic Pp2ParseException(String message)
public Pp2ParseException(String message, List<TSyntaxError> parserErrors)
public Pp2ParseException(String message, Throwable cause)
public List<TSyntaxError> getParserErrors()