de.tuberlin.cs.cis.ocl.util
Class OclAnalysisException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--de.tuberlin.cs.cis.ocl.util.OclAnalysisException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MalformedDeclaratorException, OclContextException

public class OclAnalysisException
extends java.lang.RuntimeException

A RuntimeException that can be thrown within a visitor, that wrapps an explicite exception.

Author:
fchabar
See Also:
Serialized Form

Constructor Summary
OclAnalysisException(de.tuberlin.cs.cis.ocl.parser.node.Token token, java.lang.String message)
          Constructs the exception.
 
Method Summary
 de.tuberlin.cs.cis.ocl.parser.parser.ParserException getExplicitParserException()
          Returns the wrapped explicite exception.
 int getStartLine()
          Returns the origin-line of the exception.
 int getStartPos()
          Returns the origin-position of the exception.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OclAnalysisException

public OclAnalysisException(de.tuberlin.cs.cis.ocl.parser.node.Token token,
                            java.lang.String message)
Constructs the exception.

Parameters:
message - the cause of the exception.
Method Detail

getExplicitParserException

public de.tuberlin.cs.cis.ocl.parser.parser.ParserException getExplicitParserException()
Returns the wrapped explicite exception.

Returns:
the wrapped explicite exception.

getStartLine

public int getStartLine()
Returns the origin-line of the exception.

Returns:
the origin-line of the exception.

getStartPos

public int getStartPos()
Returns the origin-position of the exception.

Returns:
the origin-position of the exception.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable