001    /*
002     *   Copyright (c) 2009 The JOMC Project
003     *   Copyright (c) 2005 Christian Schulte <cs@jomc.org>
004     *   All rights reserved.
005     *
006     *   Redistribution and use in source and binary forms, with or without
007     *   modification, are permitted provided that the following conditions
008     *   are met:
009     *
010     *     o Redistributions of source code must retain the above copyright
011     *       notice, this list of conditions and the following disclaimer.
012     *
013     *     o Redistributions in binary form must reproduce the above copyright
014     *       notice, this list of conditions and the following disclaimer in
015     *       the documentation and/or other materials provided with the
016     *       distribution.
017     *
018     *   THIS SOFTWARE IS PROVIDED BY THE JOMC PROJECT AND CONTRIBUTORS "AS IS"
019     *   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
020     *   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
021     *   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JOMC PROJECT OR
022     *   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
023     *   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
024     *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
025     *   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
026     *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
027     *   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
028     *   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
029     *
030     *   $Id: ToolException.java 1237 2010-01-09 20:22:54Z schulte2005 $
031     *
032     */
033    package org.jomc.tools;
034    
035    /**
036     * Object management and configuration tool exception.
037     *
038     * @author <a href="mailto:cs@jomc.org">Christian Schulte</a>
039     * @version $Id: ToolException.java 1237 2010-01-09 20:22:54Z schulte2005 $
040     */
041    public class ToolException extends Exception
042    {
043    
044        /** Serial version UID for backwards compatibility with 1.0.x object streams. */
045        private static final long serialVersionUID = -932933047862233386L;
046    
047        /** Creates a new {@code ToolException} instance. */
048        public ToolException()
049        {
050            super();
051        }
052    
053        /**
054         * Creates a new {@code ToolException} instance taking a message.
055         *
056         * @param message The message of the exception.
057         */
058        public ToolException( final String message )
059        {
060            super( message );
061        }
062    
063        /**
064         * Creates a new {@code ToolException} instance taking a cause.
065         *
066         * @param cause The cause of the exception.
067         */
068        public ToolException( final Throwable cause )
069        {
070            super( cause );
071        }
072    
073        /**
074         * Creates a new {@code ToolException} instance taking a message and a cause.
075         *
076         * @param message The message of the exception.
077         * @param cause The cause of the exception.
078         */
079        public ToolException( final String message, final Throwable cause )
080        {
081            super( message, cause );
082        }
083    
084    }