1 package org.wcb.exception; 2 3 /** 4 * Represents a problem with a business delegate. 5 <small> 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: Jan 26, 2006 10:38:53 AM $ <br> 22 * </small> 23 * 24 * @author walter bogaardt, wbogaardt@lowermybills.com 25 * @version $Revision: #1 $ 26 */ 27 28 public class InfrastructureException extends Exception { 29 30 /** 31 * Exception message to be thrown. 32 * @param message The string of the message. 33 */ 34 public InfrastructureException(String message) { 35 super(message); 36 } 37 38 /** 39 * Re-throw an existing exception but wrapped within this 40 * exception. 41 * @param cause Existing throwable exception. 42 */ 43 public InfrastructureException(Throwable cause) { 44 super(cause); 45 } 46 47 /** 48 * Re-throw an existing exception and add a infrastructure message to it. 49 * @param message The string message of the exception. 50 * @param cause The existing throw clause. 51 */ 52 public InfrastructureException(String message, Throwable cause) { 53 super(message, cause); 54 } 55 }