|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.eclipse.ocl.ParserException
public class ParserException
Exception indicating a failure to parse or validate OCL constraints.
Since the 1.2 release, the parser exception includes also a Diagnostic
carrying details of the one or more parse problems.
Constructor Summary | |
---|---|
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 msg,
Throwable cause)
Initializes me with a message and an exception that caused the parse failure. |
Method Summary | |
---|---|
Diagnostic |
getDiagnostic()
Obtains the diagnostic describing one or more parse problems that I signal. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParserException(String msg)
msg
- the exception messagepublic ParserException(String msg, Throwable cause)
msg
- my user-friendly messagecause
- the cause of the parse failurepublic ParserException(Diagnostic problem)
problem
- the diagnosticMethod Detail |
---|
public Diagnostic getDiagnostic()
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |