package caltool.schedule;

import caltool.PrecondViolation;
import java.util.*;

/****
 *
 * Class ScheduleTaskPrecondViolation defines and exception containing error
 * conditions for the Schedule.scheduleTask 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 scheduleTask.
 *
 */
public class ScheduleTaskPrecondViolation 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; }

}