public void validate() throws IllegalArgumentException {if (distErr != null && distErrPct != null)throw new IllegalArgumentException("Only distErr or distErrPct can be specified.");}
public virtual void Validate(){if (Operation.IsTargetNeedsArea && !Shape.HasArea){throw new ArgumentException(Operation + " only supports geometry with area");}if (DistErr != null && DistErrPct != null){throw new ArgumentException("Only DistErr or DistErrPct can be specified.");}}