tudresden.ocl.parser
Class OclParserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tudresden.ocl.parser.OclParserException
- All Implemented Interfaces:
- Serializable
- public class OclParserException
- extends RuntimeException
- See Also:
- Serialized Form
Fields inherited from class java.lang.Throwable |
|
m_sDetailMessage
private String m_sDetailMessage
m_nErrorLine
private int m_nErrorLine
m_nErrorCol
private int m_nErrorCol
OclParserException
public OclParserException(String s)
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
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.