1 package org.wcb.exception;
2
3 /**
4 * <small>
5 * Copyright (c) 2006 wbogaardt.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 * <p/>
20 * $File: $ <br>
21 * $Change: $ submitted by $Author: wbogaardt $ at $DateTime: Mar 24, 2006 1:29:10 PM $ <br>
22 * </small>
23 *
24 * @author wbogaardt
25 * @version 1
26 * Date: Mar 24, 2006
27 * Time: 1:29:10 PM
28 */
29
30 public class ServiceException extends Exception {
31
32 /**
33 * Exception message to be thrown.
34 * @param message The string of the message.
35 */
36 public ServiceException(String message) {
37 super(message);
38 }
39
40 /**
41 * Re-throw an existing exception but wrapped within this
42 * exception.
43 * @param cause Existing throwable exception.
44 */
45 public ServiceException(Throwable cause) {
46 super(cause);
47 }
48
49 /**
50 * Re-throw an existing exception and add a manager message to it.
51 * @param message The string message of the exception.
52 * @param cause The existing throw clause.
53 */
54 public ServiceException(String message, Throwable cause) {
55 super(message, cause);
56 }
57
58 }