1 /* 2 * Copyright (c) 2004 International Decision Systems, Inc. All Rights Reserved. 3 * 4 * By using this Software, You acknowledge that the Software is a valuable asset 5 * and trade secret of either International Decision Systems, Inc. ("IDSI") or a 6 * third party supplier of IDSI and constitutes confidential and proprietary 7 * information. 8 * 9 * NEITHER IDSI NOR ANY AGENT OR PERSON ACTING FOR OR WITH IDSI HAS MADE OR DOES 10 * MAKE ANY STATEMENTS, AFFIRMATIONS, REPRESENTATIONS OR WARRANTIES WHATSOEVER 11 * TO YOU, WHETHER EXPRESS OR IMPLIED, AS TO THE SOFTWARE, THE QUALITY OR 12 * CONDITION OF THE SOFTWARE, OR THE OPERATING CHARACTERISTICS OR RELIABILITY OF 13 * THE SOFTWARE, OR ITS SUITABILITY FOR ANY GENERAL OR PARTICULAR PURPOSE, OR AS 14 * TO ANY OTHER MATTER WHATSOEVER; ANY AND ALL OTHER WARRANTIES INCLUDING 15 * WITHOUT LIMITATION ANY WARRANTIES IMPLIED BY LAW, SUCH AS THE IMPLIED 16 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND TITLE, 17 * USE AND NON-INFRINGEMENT; ARE HEREBY EXPRESSLY DISCLAIMED AND EXCLUDED. 18 */ 19 package net.sourceforge.addam.impexp.csv; 20 21 /** 22 * This exception is thrown when one of three CSV format errors are detected: 23 * text is detected before a quoted value, after a quoted value, or an unterminated 24 * quote is detected. 25 * 26 * @author Tim Dawson 27 * @since Sep 19, 2004 28 */ 29 public class CSVFormatException extends Exception { 30 31 public CSVFormatException(String msg, int lineNumber, int charNumber) { 32 super(msg); 33 this.lineNumber = lineNumber; 34 this.charNumber = charNumber; 35 } 36 37 public int lineNumber() { 38 return lineNumber; 39 } 40 41 public int charNumber() { 42 return charNumber; 43 } 44 45 private final int lineNumber; 46 private final int charNumber; 47 }