Dresden OCL Toolkit

tudresden.ocl.parser
Class OclParserException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bytudresden.ocl.parser.OclParserException
All Implemented Interfaces:
Serializable

public class OclParserException
extends RuntimeException

See Also:
Serialized Form

Field Summary
private  int m_nErrorCol
           
private  int m_nErrorLine
           
private  String m_sDetailMessage
           
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
OclParserException(String s)
           
 
Method Summary
private  void extractErrorPosition(String sDetailMessage)
          Extract error position from detail message, if possible.
 int getErrorCol()
           
 int getErrorLine()
           
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_sDetailMessage

private String m_sDetailMessage

m_nErrorLine

private int m_nErrorLine

m_nErrorCol

private int m_nErrorCol
Constructor Detail

OclParserException

public OclParserException(String s)
Method Detail

getMessage

public String getMessage()

getErrorLine

public int getErrorLine()

getErrorCol

public int getErrorCol()

extractErrorPosition

private void extractErrorPosition(String sDetailMessage)
Extract error position from detail message, if possible. Assumes SableCC detail message format: "[" "," "]"

Error line and column are stored in m_nErrorLine and m_nErrorCol so that they can be retrieved using getErrorLine() and getErrorCol(). The detail message without the position information is stored in m_sDetailMessage

Since:
03/12/2001

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.