package candy; /** * An exception thrown by candy jars (most typically, when they have * no candy available, but also if they are broken or whatever). * */ public class EmptyMachineException extends CandyMachineException { /** * Create an exception with no additional explanation. */ public EmptyMachineException() { super(); } // EmptyMachineException() /** * Create an exception with additional explantation. */ public EmptyMachineException(String note) { super(note); } // EmptyMachineException } // class EmptyMachineException