001    /*
002    
003      Copyright (C) 2001 Renaud Pawlak
004    
005      This program is free software; you can redistribute it and/or modify
006      it under the terms of the GNU Lesser General Public License as
007      published by the Free Software Foundation; either version 2 of the
008      License, or (at your option) any later version.
009    
010      This program is distributed in the hope that it will be useful,
011      but WITHOUT ANY WARRANTY; without even the implied warranty of
012      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
013      GNU Lesser General Public License for more details.
014    
015      You should have received a copy of the GNU Lesser General Public License
016      along with this program; if not, write to the Free Software
017      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
018    
019    package org.objectweb.jac.wrappers;
020    
021    /**
022     * Signals that something is wrong with the limits of the limiter wrapper.
023     *
024     * @see LimiterWrapper
025     * @see LimiterWrapper#testMax(Interaction)
026     * @see LimiterWrapper#testMin(Interaction)
027     */
028    
029    public class LimiterException extends Exception {
030    
031       /**
032        * A constructor for this exception.
033        *
034        * @param msg the error message to print */
035    
036        public LimiterException(String msg) {
037            super(msg);
038        }
039    
040       /**
041        * A constructor for this exception.
042        *
043        * @param msg the error message to print
044        * @param e the exception that caused the limiter exception */
045    
046        public LimiterException(String msg, Exception e) {
047            super(msg + " because of " + e.toString());
048        }
049    }
050    
051