001 /* 002 * ChannelDisabledException.java 003 * 004 * Developed for the "Rethinking CS101" project. See http://www.cs101.org, the 005 * CS101 homepage or email las@olin.edu. 006 * 007 * Please do not redistribute without obtaining permission. 008 */ 009 010 package nodenet; 011 012 import java.io.*; 013 014 /** 015 * Signals that a Channel is disabled when attempting to read or write 016 * to it.<p> 017 * 018 * @author Todd C. Parnell, tparnell@ai.mit.edu 019 * @version $Id: ChannelDisabledException.java,v 1.3 2004/01/14 21:43:17 gus Exp $ 020 */ 021 public class ChannelDisabledException extends IOException { 022 023 /** 024 * Constructs an instance of ChannelDisabledException without a 025 * detail message. 026 */ 027 public ChannelDisabledException() { super(); } 028 029 /** 030 * Constructs an instance of ChannelDisabledException with the 031 * specified detail message. A detail message is an instace of 032 * <code>String</code> that describes this particular exception. 033 * 034 * @param s the detail message 035 */ 036 public ChannelDisabledException(String s) { super(s); } 037 } 038 039 /* 040 * $Log: ChannelDisabledException.java,v $ 041 * Revision 1.3 2004/01/14 21:43:17 gus 042 * more javadoc, plus reformat 043 * 044 * Revision 1.2 2004/01/14 20:23:21 gus 045 * Javadoc and comment cleanup 046 * 047 * Revision 1.1 2002/06/13 17:33:21 gus 048 * Moved all java files into the nodenet directory (who let them out anyway?) 049 * 050 * Revision 1.1.1.1 2002/06/05 21:56:35 root 051 * CS101 comes to Olin finally. 052 * 053 * Revision 1.4 2000/05/09 06:03:54 mharder 054 * Changed packagename from nodeNet to nodenet. 055 * 056 * Revision 1.3 1999/08/04 09:08:49 jsmthng 057 * Added javadoc comments to InputChannelVector and OutputChannelVector; 058 * finished updating the rest of the nodeNet package to reflect new 059 * changes in name and code. 060 * 061 * Modified index.html to reflect the new nodeNet code, as well as to 062 * clarify some parts of the problem set. 063 * 064 * Revision 1.1 1999/07/30 01:09:19 jsmthng 065 * Renaming BinSort package to nodeNet; moving directories and files as 066 * necessary. 067 * 068 * Revision 1.3 1998/08/12 19:29:29 tparnell 069 * Another pass after comments from las & natashao. Added support to 070 * dynamically add NodeBehaviors. Add keyboard shortcuts to menus. Added 071 * workaround to jdk bug relating to lighweight components. Misc other 072 * bugfixes. 073 * 074 * Revision 1.3 1998/08/10 17:45:50 tparnell 075 * Revision to use JDK1.2 and Swing. Redesign of GUI. Removed old kludge 076 * for file I/O and replaced with object serialization. Channel no longer 077 * requires animacy. Removed unnessary dependencies between classes. 078 * Added ability to configure channel's latency and capacity. Added 079 * javadoc to all files. General code cleanup. 080 * 081 */ 082