1 /* 2 * This file is part of Pease Plate Template Engine. 3 * 4 * Pease Plate Template Engine is free software: you can redistribute 5 * it and/or modify it under the terms of the GNU Lesser General 6 * Public License as published by the Free Software Foundation, 7 * either version 3 of the License, or any later version. 8 * 9 * Pease Plate Template Engine is distributed in the hope that it 10 * will be useful, but WITHOUT ANY WARRANTY; without even the implied 11 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 * See the GNU Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with Pease Plate Template Engine. If not, see 16 * <http://www.gnu.org/licenses/>. 17 * 18 * Copyright (c) 2008 Manfred HANTSCHEL 19 */ 20 package org.peaseplate.internal.lang; 21 22 public class TokenizerException extends Exception { 23 24 private static final long serialVersionUID = 1L; 25 26 private final int line; 27 private final int column; 28 29 public TokenizerException(int line, int column, String message) { 30 this(line, column, message, null); 31 } 32 33 public TokenizerException(int line, int column, String message, Throwable cause) { 34 super(message + " [" + line + ", " + column + "]", cause); 35 36 this.line = line; 37 this.column = column; 38 } 39 40 public int getLine() { 41 return line; 42 } 43 44 public int getColumn() { 45 return column; 46 } 47 48 }