package caltool.model.model.schedule; import caltool.model.model.PrecondViolation; import java.util.*; /**** * * Class ScheduleAppointmentPrecondViolation defines and exception containing * error conditions for the Schedule.scheduleAppointment method. It contains a * list of the specific error messages that may be output in response to a * precondition having been violated by a call th scheduleAppointment. * */ public class ScheduleAppointmentPrecondViolation extends Exception implements PrecondViolation { /** * Return the concrete error list for precondtion violation. Each position * in the list corresponds to violation of a particular precondition * clause. */ public String[] getErrors() { return null; } /** * Clear out all of the error messages in this. */ public void clear() {} /** * Return true if one or more error messages has been set. */ public boolean anyErrors() { return false; } /** * Return the number of error messages. */ public int numberOfErrors() { return 0; } }