KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > wrappers > LimiterException


1 /*
2
3   Copyright (C) 2001 Renaud Pawlak
4
5   This program is free software; you can redistribute it and/or modify
6   it under the terms of the GNU Lesser General Public License as
7   published by the Free Software Foundation; either version 2 of the
8   License, or (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13   GNU Lesser General Public License for more details.
14
15   You should have received a copy of the GNU Lesser General Public License
16   along with this program; if not, write to the Free Software
17   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */

18
19 package org.objectweb.jac.wrappers;
20
21 /**
22  * Signals that something is wrong with the limits of the limiter wrapper.
23  *
24  * @see LimiterWrapper
25  * @see LimiterWrapper#testMax(Interaction)
26  * @see LimiterWrapper#testMin(Interaction)
27  */

28
29 public class LimiterException extends Exception JavaDoc {
30
31    /**
32     * A constructor for this exception.
33     *
34     * @param msg the error message to print */

35
36     public LimiterException(String JavaDoc msg) {
37         super(msg);
38     }
39
40    /**
41     * A constructor for this exception.
42     *
43     * @param msg the error message to print
44     * @param e the exception that caused the limiter exception */

45
46     public LimiterException(String JavaDoc msg, Exception JavaDoc e) {
47         super(msg + " because of " + e.toString());
48     }
49 }
50
51
52
Popular Tags