org.apache.pig.parser
Class PigRecognitionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.antlr.runtime.RecognitionException
              extended by org.apache.pig.parser.PigRecognitionException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DuplicatedSchemaAliasException, InvalidCommandException, InvalidPathException, InvalidScalarProjectionException, NonProjectExpressionException, ParserValidationException, PlanGenerationFailureException, UndefinedAliasException

public abstract class PigRecognitionException
extends org.antlr.runtime.RecognitionException

Subclass of Antlr RecognitionException which should be the parent class of all parser related exception classes. We need this layer because of the line number problem in tree parser in Antlr-3.2. You will need a token where the exception occurs in order to instantiate an instance of this class.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.antlr.runtime.RecognitionException
approximateLineInfo, c, charPositionInLine, index, input, line, node, token
 
Constructor Summary
PigRecognitionException(org.antlr.runtime.IntStream input, SourceLocation loc)
           
 
Method Summary
protected  String msgHeader()
           
 
Methods inherited from class org.antlr.runtime.RecognitionException
extractInformationFromTreeNodeStream, getUnexpectedType
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PigRecognitionException

public PigRecognitionException(org.antlr.runtime.IntStream input,
                               SourceLocation loc)
Method Detail

msgHeader

protected String msgHeader()


Copyright © 2007-2012 The Apache Software Foundation