Package org.apache.pig.parser

Examples of org.apache.pig.parser.SourceLocation.offset()


            assertTrue(t instanceof FrontendException);
           
            FrontendException fe = (FrontendException) t;
            SourceLocation sl = fe.getSourceLocation();
            assertEquals(2, sl.line());
            assertEquals(15, sl.offset());
           
            Throwable cause = fe.getCause();
            assertTrue(cause instanceof ParserException);
           
        } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.