001/*
002*   IntegratorException -- Exception thrown when there is a problem integrating an equation.
003*
004*   Copyright (C) 2004-2012 by Joseph A. Huwaldt.
005*   All rights reserved.
006*
007*   This library is free software; you can redistribute it and/or
008*   modify it under the terms of the GNU Lesser General Public
009*   License as published by the Free Software Foundation; either
010*   version 2.1 of the License, or (at your option) any later version.
011*   
012*   This library is distributed in the hope that it will be useful,
013*   but WITHOUT ANY WARRANTY; without even the implied warranty of
014*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
015*   Lesser General Public License for more details.
016*
017*   You should have received a copy of the GNU Lesser General Public License
018*   along with this program; if not, write to the Free Software
019*   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
020*   Or visit:  http://www.gnu.org/licenses/lgpl.html
021**/
022package jahuwaldt.tools.math;
023
024
025/**
026*  Integrator routines may throw this exception 
027*  when an error occurs.
028*
029*  <p>  Modified by:  Joseph A. Huwaldt  </p>
030*
031*  @author   Joseph A. Huwaldt   Date:  October 27, 2004
032*  @version  September 16, 2012
033**/
034public class IntegratorException extends Exception {
035
036        /**
037        *  Force users of this exception to supply a message by making
038        *  the default constructor private.  A detail message is a
039        *  String that describes this particular exception.
040        **/
041        protected IntegratorException() {}
042
043
044        /**
045        *  Constructs a IntegratorException with the specified detail message.
046    *  A detail message is a String that describes this particular
047    *  exception.
048        *
049        *  @param  msg  The String containing a detail message
050        **/
051        public IntegratorException(String msg) {
052                super(msg);
053        }
054
055
056        /**
057        *  Returns a short description of the IntegratorException.
058        *
059        *  @return  Returns this exceptions message as a string.
060        **/
061    @Override
062    public String toString() {
063                return getMessage();
064    }
065
066
067}
068
069