1 /*
2 * Created on Apr 22, 2005
3 *
4 * Copyright 2005-2006 the original author or authors.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18 package org.wcb.exception;
19
20 /**
21 <small>
22 * Copyright (c) 2006 wbogaardt.
23 * This library is free software; you can redistribute it and/or
24 * modify it under the terms of the GNU Lesser General Public
25 * License as published by the Free Software Foundation; either
26 * version 2.1 of the License, or (at your option) any later version.
27 *
28 * This library is distributed in the hope that it will be useful,
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31 * Lesser General Public License for more details.
32 *
33 * You should have received a copy of the GNU Lesser General Public
34 * License along with this library; if not, write to the Free Software
35 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
36 * <p/>
37 * $File: $ <br>
38 * $Change: $ submitted by $Author: wbogaardt $ at $DateTime: Jan 26, 2006 10:38:53 AM $ <br>
39 * </small>
40 *
41 * @author wbogaardt
42 * @version 1
43 */
44
45 public class ManagerException extends Exception {
46
47 /**
48 * Exception message to be thrown.
49 * @param message The string of the message.
50 */
51 public ManagerException(String message) {
52 super(message);
53 }
54
55 /**
56 * Re-throw an existing exception but wrapped within this
57 * exception.
58 * @param cause Existing throwable exception.
59 */
60 public ManagerException(Throwable cause) {
61 super(cause);
62 }
63
64 /**
65 * Re-throw an existing exception and add a manager message to it.
66 * @param message The string message of the exception.
67 * @param cause The existing throw clause.
68 */
69 public ManagerException(String message, Throwable cause) {
70 super(message, cause);
71 }
72 }