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