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