InternalValidate method

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

Implementation

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

  if (State == OofState.Scheduled) {
    if (Duration == null) {
      throw ArgumentException(
        "Duration must be specified when State is equal to Scheduled.",
      );
    }

    EwsUtilities.ValidateParam(Duration, "Duration");
  }
}