caltool
Interface PrecondViolation

All Known Implementing Classes:
ScheduleAppointmentPrecondViolation, ScheduleEventPrecondViolation, ScheduleMeetingPrecondViolation, ScheduleTaskPrecondViolation

public interface PrecondViolation

Interface PrecondViolation defines the methods that all precondition violation exceptions should implement.


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.
 

Method Detail

getErrors

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.


clear

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


anyErrors

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


numberOfErrors

int numberOfErrors()
Return the number of error messages.