    001    /*
    002     * InvalidSequenceException.java
    003     *
    004     * Copyright 2003 Sergio Anibal de Carvalho Junior
    005     *
    006     * This file is part of NeoBio.
    007     *
    008     * NeoBio is free software; you can redistribute it and/or modify it under the terms of
    009     * the GNU General Public License as published by the Free Software Foundation; either
    010     * version 2 of the License, or (at your option) any later version.
    011     *
    012     * NeoBio is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    013     * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    014     * PURPOSE. See the GNU General Public License for more details.
    015     *
    016     * You should have received a copy of the GNU General Public License along with NeoBio;
    017     * if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
    018     * Boston, MA 02111-1307, USA.
    019     *
    020     * Proper attribution of the author as the source of the software would be appreciated.
    021     *
    022     * Sergio Anibal de Carvalho Junior             mailto:sergioanibaljr@users.sourceforge.net
    023     * Department of Computer Science               http://www.dcs.kcl.ac.uk
    024     * King's College London, UK                    http://www.kcl.ac.uk
    025     *
    026     * Please visit http://neobio.sourceforge.net
    027     *
    028     * This project was supervised by Professor Maxime Crochemore.
    029     *
    030     */
    031
    032    package neobio.alignment;
    033
    034    /**
    035     * Signals that the sequence does not comply with the specification (see
    036     * {@linkplain CharSequence} or {@linkplain FactorSequence} for details).
    037     *
    038     * @author Sergio A. de Carvalho Jr.
    039     * @see CharSequence
    040     * @see FactorSequence
    041     */
    042    public class InvalidSequenceException extends Exception
    043    {
    044            /**
    045             * Constructs an <CODE>InvalidSequenceException</CODE> with null as its
    046             * error detail message.
    047             */
    048            public InvalidSequenceException ()
    049            {
    050                    super();
    051            }
    052
    053            /**
    054             * Constructs an <CODE>InvalidSequenceException</CODE> with the specified
    055             * detail message.
    056             *
    057             * @param message an error message
    058             */
    059            public InvalidSequenceException (String message)
    060            {
    061                    super(message);
    062            }
    063
    064            /**
    065             * Constructs an <CODE>InvalidSequenceException</CODE> with the specified
    066             * cause (and a detail message that typically contains the class and detail message
    067             * of cause).
    068             *
    069             * @param cause a cause
    070             */
    071            public InvalidSequenceException (Throwable cause)
    072            {
    073                    super(cause);
    074            }
    075
    076            /**
    077             * Constructs an <CODE>InvalidSequenceException</CODE> with the specified
    078             * detail message and cause.
    079             *
    080             * @param message an error message
    081             * @param cause a cause
    082             */
    083            public InvalidSequenceException (String message, Throwable cause)
    084            {
    085                    super(message, cause);
    086            }
    087    }