src/main/java/com/hedera/hashgraph/identity/utils/Validator.java
/**
   * Adds a validation error to the errors list.
   *
   * @param errorMessage The error message.
   */
Adds a validation error to the errors list.

@param errorMessage The error message.
Adds a validation error to the errors list . @param errorMessage The error message .
public void addValidationError(final String errorMessage) {
    if (validationErrors == null) {
      validationErrors = new ArrayList<>();
    }
    validationErrors.add(errorMessage);
  }
public void addValidationError ( final String errorMessage ) { if ( validationErrors == null ) { validationErrors = new ArrayList < > ( ) ; } validationErrors . add ( errorMessage ) ; }
Adds a validation error to the errors list.
Adds a validation error to the errors list .