public class ParserException
extends java.lang.Exception
Diagnostic
carrying details of the one or more parse problems.Constructor and Description |
---|
ParserException(org.eclipse.emf.common.util.Diagnostic problem)
Initializes me with a diagnostic obtained from a problem handler.
|
ParserException(java.lang.String msg)
Initializes me with a user-friendly message describing the nature of
the parse failure.
|
ParserException(java.lang.String msg,
java.lang.Throwable cause)
Initializes me with a message and an exception that caused the parse
failure.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.common.util.Diagnostic |
getDiagnostic()
Obtains the diagnostic describing one or more parse problems that I
signal.
|
public ParserException(java.lang.String msg)
msg
- the exception messagepublic ParserException(java.lang.String msg, java.lang.Throwable cause)
msg
- my user-friendly messagecause
- the cause of the parse failurepublic ParserException(org.eclipse.emf.common.util.Diagnostic problem)
problem
- the diagnosticpublic org.eclipse.emf.common.util.Diagnostic getDiagnostic()