1 /**
2 * This program is free software: you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation, version 3.
5 *
6 * This program is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 * GNU General Public License for more details.
10 *
11 * You should have received a copy of the GNU General Public License
12 * along with this program. If not, see <http://www.gnu.org/licenses/>.
13 */
14
15 package net.curre.prefcount.service;
16
17 /**
18 * Object of this class represents a service exception.
19 * <p/>
20 * Created date: May 13, 2007
21 *
22 * @author Yevgeny Nyden
23 */
24 public class ServiceException extends Exception {
25
26 /**
27 * Constructor that sets exception message.
28 *
29 * @param message Exception message to set.
30 */
31 public ServiceException(String message) {
32 super(message);
33 }
34
35 /**
36 * Constructor that sets exception message
37 * and another exception to wrap.
38 *
39 * @param message Exception message to set.
40 * @param e Exception to wrap.
41 */
42 public ServiceException(String message, Exception e) {
43 super(message, e);
44 }
45
46 }