diff --git a/src/main/java/com/syncleus/ferma/framefactories/annotation/ReflectionUtility.java b/src/main/java/com/syncleus/ferma/framefactories/annotation/ReflectionUtility.java index 418c3537f6a2981ffc6b0a8de5c07f1fb9d4d62f..eaa233abc2d5f2d52f5915381ee38b89b253cfb0 100644 --- a/src/main/java/com/syncleus/ferma/framefactories/annotation/ReflectionUtility.java +++ b/src/main/java/com/syncleus/ferma/framefactories/annotation/ReflectionUtility.java @@ -186,8 +186,7 @@ public class ReflectionUtility { public static Type getType(final Type[] types, final int pos) { if (pos >= types.length) - throw new RuntimeException("No type can be found at position " - + pos); + throw new IndexOutOfBoundsException("No type can be found at position " + pos); return types[pos]; }