00001 /* 00002 * Copyright 2006-2007 Columbia University. 00003 * 00004 * This file is part of MEAPsoft. 00005 * 00006 * MEAPsoft is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License version 2 as 00008 * published by the Free Software Foundation. 00009 * 00010 * MEAPsoft is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with MEAPsoft; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00018 * 02110-1301 USA 00019 * 00020 * See the file "COPYING" for the text of the license. 00021 */ 00022 00023 package com.meapsoft; 00024 00031 public class ParserException extends Exception 00032 { 00033 public String message = ""; 00034 00035 public ParserException(String filename, long lineno) 00036 { 00037 this(filename, lineno, ""); 00038 message = "Parse error in " + filename; 00039 } 00040 00041 public ParserException(String filename, String msg) 00042 { 00043 super("Parse error in "+filename+": "+msg); 00044 00045 message = msg; 00046 } 00047 00048 public ParserException(String filename, long lineno, String msg) 00049 { 00050 super("Parse error in "+filename+" on line "+lineno+": "+msg); 00051 } 00052 } 00053