Skip to content

Commit b223bf2

Browse files
authored
Merge pull request #2724 from joeshannon/pva-structure-helper-cleanup
Use more specific exception in PVAStructureHelper
2 parents 4a53219 + e3a7fff commit b223bf2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

core/pv/src/main/java/org/phoebus/pv/pva/PVAStructureHelper.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
import java.util.Arrays;
1717
import java.util.List;
1818
import java.util.Optional;
19-
import java.util.stream.Collectors;
20-
import java.util.stream.IntStream;
2119

2220
import org.epics.pva.data.PVAArray;
2321
import org.epics.pva.data.PVABool;
@@ -35,7 +33,6 @@
3533
import org.epics.pva.data.PVAStructure;
3634
import org.epics.pva.data.PVAStructureArray;
3735
import org.epics.pva.data.PVAUnion;
38-
import org.epics.util.array.ArrayBoolean;
3936
import org.epics.util.array.ArrayByte;
4037
import org.epics.util.array.ArrayDouble;
4138
import org.epics.util.array.ArrayFloat;
@@ -252,7 +249,7 @@ else if (column instanceof PVABoolArray)
252249
}
253250
else
254251
{
255-
throw new RuntimeException("Could not decode table column of type: " + column.getClass());
252+
throw new IllegalArgumentException("Could not decode table column of type: " + column.getClass());
256253
}
257254
}
258255

0 commit comments

Comments
 (0)