001/*
002 *                    BioJava development code
003 *
004 * This code may be freely distributed and modified under the
005 * terms of the GNU Lesser General Public Licence.  This should
006 * be distributed with the code.  If you do not have a copy,
007 * see:
008 *
009 *      http://www.gnu.org/copyleft/lesser.html
010 *
011 * Copyright for this code is held jointly by the individual
012 * authors.  These should be listed in @author doc comments.
013 *
014 * For more information on the BioJava project and its aims,
015 * or to join the biojava-l mailing list, visit the home page
016 * at:
017 *
018 *      http://www.biojava.org/
019 *
020 */
021package org.biojava.directory;
022
023/**
024 * A <code>RegistryException</code> thrown when the registry cannot
025 * find an implementation of a requested <code>SequenceDB</code>.
026 *
027 * @author Brian Gilman
028 * @author Thomas Down
029 * @author Keith James
030 * @author Matthew Pocock
031 * @version $Revision$
032 */
033public class RegistryException extends Exception {
034
035    /**
036     * Creates a new <code>RegistryException</code> with no detail
037     * message.
038     */
039    public RegistryException(){
040        super();
041    }
042
043    /**
044     * Creates a new <code>RegistryException</code> with the specified
045     * detail message.
046     *
047     * @param message a <code>String</code>.
048     */
049    public RegistryException(String message){
050        super(message);
051    }
052
053    /**
054     * Creates a new <code>RegistryException</code> with no detail
055     * message, wrapping another <code>Throwable</code>.
056     *
057     * @param t a <code>Throwable</code>.
058     */
059    public RegistryException(Throwable t) {
060        super(t);
061    }
062
063    /**
064     * Creates a new <code>RegistryException</code> with the specified
065     * detail message, wrapping another <code>Throwable</code>.
066     *
067     * @param t a <code>Throwable</code>.
068     * @param message a <code>String</code>.
069     * @deprecated use new RegistryException(message, cause)
070     */
071    public RegistryException(Throwable t, String message) {
072        this(message, t);
073    }
074    
075    public RegistryException(String message, Throwable t) {
076      super(message, t);
077    }
078}