@NotNull
  public ValidationErrorType getValidationErrorCode() {
    if (code == null) {
      return ValidationErrorType.UNKNOWN;
    } else {
      return ValidationErrorType.toEnum(code);
    }
  }
@NotNull
  public ValidationErrorType getValidationErrorCode() {
    if (code == null) {
      return ValidationErrorType.UNKNOWN;
    } else {
      return ValidationErrorType.toEnum(code);
    }
  }
@ NotNull public ValidationErrorType getValidationErrorCode ( ) { if ( code == null ) { return ValidationErrorType . UNKNOWN ; } else { return ValidationErrorType . toEnum ( code ) ; } }
Gets the validation error type.

@return the validation error type
Gets the validation error type .