FileDocCategorySizeDatePackage
RecognitionException.javaAPI DocGlassfish v2 API1667Wed Aug 30 15:34:10 BST 2006persistence.antlr

RecognitionException

public class RecognitionException extends ANTLRException

Fields Summary
public String
fileName
public int
line
public int
column
Constructors Summary
public RecognitionException()

        super("parsing error");
        fileName = null;
        line = -1;
        column = -1;
    
public RecognitionException(String s)
RecognitionException constructor comment.

param
s java.lang.String

        super(s);
        fileName = null;
        line = -1;
        column = -1;
    
public RecognitionException(String s, String fileName_, int line_)

deprecated
As of ANTLR 2.7.2 use {@see #RecognitionException(char, String, int, int) }

        this(s, fileName_, line_, -1);
    
public RecognitionException(String s, String fileName_, int line_, int column_)
RecognitionException constructor comment.

param
s java.lang.String

        super(s);
        fileName = fileName_;
        line = line_;
        column = column_;
    
Methods Summary
public intgetColumn()

        return column;
    
public java.lang.StringgetErrorMessage()

deprecated
As of ANTLR 2.7.0

        return getMessage();
    
public java.lang.StringgetFilename()

        return fileName;
    
public intgetLine()

        return line;
    
public java.lang.StringtoString()

        return FileLineFormatter.getFormatter().
            getFormatString(fileName, line, column) + getMessage();