public class SemanticException extends ParserException
Constructor and Description |
---|
SemanticException(Diagnostic problem)
Initializes me with a diagnostic obtained from a problem handler.
|
SemanticException(String msg)
Initializes me with a user-friendly message describing the nature of
the parse failure.
|
SemanticException(String msg,
Throwable cause)
Initializes me with a message and an exception that caused the parse
failure.
|
getDiagnostic
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SemanticException(String msg)
msg
- the exception messagepublic SemanticException(String msg, Throwable cause)
msg
- my user-friendly messagecause
- the cause of the parse failurepublic SemanticException(Diagnostic problem)
problem
- the diagnosticCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.