org.eclipse.ocl.examples.pivot
Class SyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.ocl.examples.pivot.ParserException
              extended by org.eclipse.ocl.examples.pivot.SyntaxException
All Implemented Interfaces:
java.io.Serializable

public class SyntaxException
extends ParserException

Exception indicating a syntax error in parsing OCL expressions.

Author:
Christian W. Damus (cdamus)
See Also:
Serialized Form

Constructor Summary
SyntaxException(org.eclipse.emf.common.util.Diagnostic problem)
          Initializes me with a diagnostic obtained from a problem handler.
SyntaxException(java.lang.String msg)
          Initializes me with a user-friendly message describing the nature of the parse failure.
SyntaxException(java.lang.String msg, java.lang.Throwable cause)
          Initializes me with a message and an exception that caused the parse failure.
 
Method Summary
 
Methods inherited from class org.eclipse.ocl.examples.pivot.ParserException
getDiagnostic
 
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

SyntaxException

public SyntaxException(java.lang.String msg)
Initializes me with a user-friendly message describing the nature of the parse failure.

Parameters:
msg - the exception message

SyntaxException

public SyntaxException(java.lang.String msg,
                       java.lang.Throwable cause)
Initializes me with a message and an exception that caused the parse failure.

Parameters:
msg - my user-friendly message
cause - the cause of the parse failure

SyntaxException

public SyntaxException(org.eclipse.emf.common.util.Diagnostic problem)
Initializes me with a diagnostic obtained from a problem handler.

Parameters:
problem - the diagnostic