InternalValidate method

  1. @override
void InternalValidate()
override
Validates this instance.

Implementation

@override
void InternalValidate() {
  super.InternalValidate();

  if (_dayOfTheWeek == null) {
    throw ServiceValidationException(
      "Strings.DayOfTheWeekMustBeSpecifiedForRecurrencePattern",
    );
  }

  if (_dayOfTheWeekIndex == null) {
    throw ServiceValidationException(
      "Strings.DayOfWeekIndexMustBeSpecifiedForRecurrencePattern",
    );
  }
}