1 /* 2 * $HeadURL: $ 3 * $Date: $ 4 * $Revision: $ 5 * $Author: $ 6 * 7 * Copyright (c) 2005 MindTree Consulting Ltd. 8 * 9 * This file is part of Insight. 10 * 11 * Insight is free software: you can redistribute it and/or modify it under the 12 * terms of the GNU General Public License as published by the Free Software 13 * Foundation, either version 3 of the License, or (at your option) any later 14 * version. 15 * 16 * Insight is distributed in the hope that it will be useful, but 17 * WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 19 * Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License along with 22 * Insight. If not, see <http://www.gnu.org/licenses/>. 23 */ 24 25 package com.mindtree.techworks.insight.receiver; 26 27 /** 28 * Thrown when an any Receiver is not able to initilize itself. 29 * All implementations of AbstractReceiver should throw instance 30 * of this class if they are not able to initialize themself using 31 * the initialize method. 32 * 33 */ 34 public class ReceiverInitializationException extends Exception { 35 36 /** 37 * Used for object serialization 38 */ 39 private static final long serialVersionUID = 7433764477768473189L; 40 41 /** 42 *Constructs a <code>ReceiverInitializationException</code> with no detail message. 43 */ 44 public ReceiverInitializationException() { 45 super(); 46 } 47 48 /** 49 * Constructs a <code>NullPointerException</code> with the specified 50 * detail message. 51 * 52 * @param s the detail message. 53 */ 54 public ReceiverInitializationException(String s) { 55 super(s); 56 } 57 58 /** Constructs a new ReceiverInitializationException with the specified cause. 59 * 60 * @param cause the cause (which is saved for later retrieval by the 61 * {@link #getCause()} method). (A <tt>null</tt> value is 62 * permitted, and indicates that the cause is nonexistent or 63 * unknown.) 64 */ 65 public ReceiverInitializationException(Throwable cause) { 66 super(cause); 67 } 68 69 /** 70 * Constructs a new ReceiverInitializationException with the specified detail message and 71 * cause. 72 * 73 * @param message the detail message (which is saved for later retrieval 74 * by the {@link #getMessage()} method). 75 * @param cause the cause (which is saved for later retrieval by the 76 * {@link #getCause()} method). (A <tt>null</tt> value is 77 * permitted, and indicates that the cause is nonexistent or 78 * unknown.) 79 */ 80 public ReceiverInitializationException(String message, Throwable cause) { 81 super(message, cause); 82 } 83 84 }