caltool.schedule
Class ScheduleTaskPrecondViolation

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by caltool.schedule.ScheduleTaskPrecondViolation
All Implemented Interfaces:
PrecondViolation, java.io.Serializable

public class ScheduleTaskPrecondViolation
extends java.lang.Exception
implements PrecondViolation

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.

See Also:
Serialized Form

Constructor Summary
ScheduleTaskPrecondViolation()
           
 
Method Summary
 boolean anyErrors()
          Return true if one or more error messages has been set.
 void clear()
          Clear out all of the error messages in this.
 java.lang.String[] getErrors()
          Return the concrete error list for precondtion violation.
 int numberOfErrors()
          Return the number of error messages.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScheduleTaskPrecondViolation

public ScheduleTaskPrecondViolation()
Method Detail

getErrors

public java.lang.String[] getErrors()
Return the concrete error list for precondtion violation. Each position in the list corresponds to violation of a particular precondition clause.

Specified by:
getErrors in interface PrecondViolation

clear

public void clear()
Clear out all of the error messages in this.

Specified by:
clear in interface PrecondViolation

anyErrors

public boolean anyErrors()
Return true if one or more error messages has been set.

Specified by:
anyErrors in interface PrecondViolation

numberOfErrors

public int numberOfErrors()
Return the number of error messages.

Specified by:
numberOfErrors in interface PrecondViolation