public class ParserException extends Exception
Diagnostic
carrying details of the one or more parse problems.Constructor and Description |
---|
ParserException(Diagnostic problem)
Initializes me with a diagnostic obtained from a problem handler.
|
ParserException(String msg)
Initializes me with a user-friendly message describing the nature of
the parse failure.
|
ParserException(String messageTemplate,
Object... bindings) |
ParserException(Throwable cause,
String msg)
Initializes me with a message and an exception that caused the parse
failure.
|
ParserException(Throwable cause,
String messageTemplate,
Object... bindings) |
Modifier and Type | Method and Description |
---|---|
Diagnostic |
getDiagnostic()
Obtains the diagnostic describing one or more parse problems that I
signal.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParserException(String msg)
msg
- the exception messagepublic ParserException(Throwable cause, String msg)
msg
- my user-friendly messagecause
- the cause of the parse failurepublic ParserException(Diagnostic problem)
problem
- the diagnosticCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.