Field field = aClass.getDeclaredField("singleton");
return (T) field.get(this);
} catch (IllegalAccessException | NoSuchFieldException e) {
- throw new RuntimeException(e);
+ throw new IllegalArgumentException(e);
}
}
Field field = aClass.getDeclaredField("singleton");
return field.get(this) != null;
} catch (IllegalAccessException | NoSuchFieldException e) {
- throw new RuntimeException(e);
+ throw new IllegalArgumentException(e);
}
}
Field field = aClass.getDeclaredField("bulkRequest");
return (List<T>) field.get(this);
} catch (IllegalAccessException | NoSuchFieldException e) {
- throw new RuntimeException(e);
+ throw new IllegalArgumentException(e);
}
}
}