1 24 25 package org.aspectj.compiler.base.parser; 26 27 public class ParseException extends RuntimeException { 28 int position; 29 SourceInfo sourceInfo; 30 31 public int getLine() { return sourceInfo.getLine(position); } 32 public int getColumn() { return sourceInfo.getColumn(position); } 33 34 public ParseException(int _position, SourceInfo _sourceInfo, String message) { 35 super(message); 36 position = _position; 37 sourceInfo = _sourceInfo; 38 } 39 public ParseException(Token where, SourceInfo sourceInfo, String message) { 40 this(where.startPosition, sourceInfo, message); 41 } 42 43 public String niceMessage() { 44 return getMessage(); 45 } 46 } 47 | Popular Tags |