Handle custom properties in VNS

Throw an exception if VehicleNetwork#getProperty(int) called for custom
property because data type is undefined.

Bug:26729379
Change-Id: I78de2e1059d5c275e828c6ff4b41d4424c7feb6f
diff --git a/libvehiclenetwork/java/src/com/android/car/vehiclenetwork/VehicleNetwork.java b/libvehiclenetwork/java/src/com/android/car/vehiclenetwork/VehicleNetwork.java
index 48b62b0..5925e9b 100644
--- a/libvehiclenetwork/java/src/com/android/car/vehiclenetwork/VehicleNetwork.java
+++ b/libvehiclenetwork/java/src/com/android/car/vehiclenetwork/VehicleNetwork.java
@@ -270,6 +270,9 @@
      */
     public VehiclePropValue getProperty(int property) throws IllegalArgumentException {
         int valueType = VehicleNetworkConsts.getVehicleValueType(property);
+        if (valueType == 0) {
+            throw new IllegalArgumentException("Data type is unknown for property: " + property);
+        }
         VehiclePropValue value = VehiclePropValueUtil.createBuilder(property, valueType, 0).build();
         return getProperty(value);
     }