001/*
002        $Id: BaseException.java 3207 2009-04-09 06:48:11Z gregory $
003
004        Copyright (C) 2006 Gregory Vincic, Olle Mansson
005        Copyright (C) 2007 Gregory Vincic
006
007        This file is part of Proteios.
008        Available at http://www.proteios.org/
009
010        Proteios is free software; you can redistribute it and/or modify it
011        under the terms of the GNU General Public License as published by
012        the Free Software Foundation; either version 2 of the License, or
013        (at your option) any later version.
014
015        Proteios is distributed in the hope that it will be useful, but
016        WITHOUT ANY WARRANTY; without even the implied warranty of
017        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
018        General Public License for more details.
019
020        You should have received a copy of the GNU General Public License
021        along with this program; if not, write to the Free Software
022        Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
023        02111-1307, USA.
024*/
025
026package org.proteios.core;
027
028/**
029        This is the base class for exceptions in Proteios. All other 
030        exceptions defined by Proteios are subclasses of this one.
031        
032        @author Nicklas
033        @version 2.0
034*/
035@SuppressWarnings("serial")
036public class BaseException 
037        extends RuntimeException
038{
039        /**
040                Create a new <code>BaseException</code> object.
041        */
042        public BaseException()
043        {
044                super();
045        }
046
047        /**
048                Create a new <code>BaseException</code> object with the specified 
049                <code>message</code>
050                @param message The message to throw with the exception
051        */
052        public BaseException(String message)
053        {
054                super(message);
055        }
056        
057        /**
058                Create a new <code>BaseException</code> object with the 
059                specified <code>message</code>
060                @param message The message to throw with the exception
061                @param cause The original exception
062        */
063        public BaseException(String message, Throwable cause)
064        {
065                super(message, cause);
066        }
067
068        /**
069                Create a new <code>BaseException</code> object acting as a 
070                wrapper for another exception that caused the error.
071                @param cause The original exception
072        */
073        public BaseException(Throwable cause)
074        {
075                this(cause.getMessage(), cause);
076        }
077}
078
079
080