antlraux package
v0.2.1

antlraux.context
Class ContextException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--antlr.ANTLRException
                    |
                    +--antlr.RecognitionException
                          |
                          +--antlraux.util.LexInfoException
                                |
                                +--antlraux.context.ContextException
All Implemented Interfaces:
LexInfo, java.io.Serializable
Direct Known Subclasses:
TypeException

public class ContextException
extends LexInfoException
implements LexInfo

This is the exception launched when an error happens during contextual information treatment. Since it is a subclass of antlr.RecognitionException, it can be thrown by methods in a parser or treeparser with little problems (they have try-catch clauses for RecognitionException most of the time).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class antlr.RecognitionException
column, fileName, line
 
Fields inherited from interface antlraux.util.LexInfo
DEFAULT_COLUMN, DEFAULT_FILENAME, DEFAULT_LINE
 
Constructor Summary
ContextException()
           
ContextException(java.lang.String s)
           
ContextException(java.lang.String s, LexInfo li)
           
ContextException(java.lang.String s, java.lang.String fileName, int line, int column)
           
 
Methods inherited from class antlraux.util.LexInfoException
copyLexInfo, getLexInfoString, setColumn, setFilename, setLine
 
Methods inherited from class antlr.RecognitionException
getColumn, getErrorMessage, getFilename, getLine, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface antlraux.util.LexInfo
copyLexInfo, getColumn, getFilename, getLexInfoString, getLine, setColumn, setFilename, setLine
 

Constructor Detail

ContextException

public ContextException()

ContextException

public ContextException(java.lang.String s)

ContextException

public ContextException(java.lang.String s,
                        java.lang.String fileName,
                        int line,
                        int column)

ContextException

public ContextException(java.lang.String s,
                        LexInfo li)

antlraux package
v0.2.1

Created by Enrique José García Cota