InternalValidate method

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

Implementation

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

  if (_month == null) {
    throw ServiceValidationException(
      "Strings.MonthMustBeSpecifiedForRecurrencePattern",
    );
  }

  if (_dayOfMonth == null) {
    throw ServiceValidationException(
      "Strings.DayOfMonthMustBeSpecifiedForRecurrencePattern",
    );
  }
}