package candy; /** * An exception thrown by candy machines (most typically, when they have * no candy available, but also if they are broken or whatever). * * @author Samuel A. Rebelsky * @version 1.0 of August 2004 */ public class CandyMachineException extends Exception { /** * Create an exception with no additional explanation. */ public CandyMachineException() { super(); } // CandyMachineException() /** * Create an exception with additional explantation. */ public CandyMachineException(String note) { super(note); } // CandyMachineException } // class CandyMachineException