001    /*
002     * CSVOException.java
003     *
004     * Copyright (C) 2005 Anupam Sengupta (anupamsg@users.sourceforge.net)
005     *
006     * This program is free software; you can redistribute it and/or
007     * modify it under the terms of the GNU General Public License
008     * as published by the Free Software Foundation; either version 2
009     * of the License, or (at your option) any later version.
010     *
011     * This program is distributed in the hope that it will be useful,
012     * but WITHOUT ANY WARRANTY; without even the implied warranty of
013     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014     * GNU General Public License for more details.
015     *
016     * You should have received a copy of the GNU General Public License
017     * along with this program; if not, write to the Free Software
018     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
019     *
020     * Version: $Revision: 1.1 $
021     */
022    package net.sf.anupam.csv.exceptions;
023    
024    /**
025     * A checked exception for CSV Objects framework. This exception is used internally
026     * within the framework.
027     *
028     * @author Anupam Sengupta
029     * @version $Revision: 1.1 $
030     */
031    public class CSVOException extends Exception {
032    
033        /**
034         * Default Constructor.
035         */
036        public CSVOException() {
037            super();
038        }
039    
040        /**
041         * Constructor accepting a message string.
042         *
043         * @param message the error message
044         */
045        public CSVOException(final String message) {
046            super(message);
047        }
048    
049        /**
050         * Constructor accepting a message and a root cause exception to embed.
051         *
052         * @param message the error message
053         * @param cause   the root cause exception
054         */
055        public CSVOException(final String message, final Throwable cause) {
056            super(message, cause);
057        }
058    
059        /**
060         * Constructor accepting the root cause exception to embed.
061         *
062         * @param cause the root cause exception
063         */
064        public CSVOException(final Throwable cause) {
065            super(cause);
066        }
067    }