try {
fields.add(IndexField.class.cast(classField.get(null)));
} catch (IllegalAccessException e) {
- throw new IllegalStateException("Could not access Field '" + classField.getName() + "'");
+ throw new IllegalStateException("Could not access Field '" + classField.getName() + "'", e);
}
}
}
try {
fields.add(IndexField.class.cast(classField.get(null)));
} catch (IllegalAccessException e) {
- throw new IllegalStateException("Could not access Field '" + classField.getName() + "'");
+ throw new IllegalStateException("Could not access Field '" + classField.getName() + "'", e);
}
}
}
try {
fields.add(IndexField.class.cast(classField.get(null)));
} catch (IllegalAccessException e) {
- throw new IllegalStateException("Could not access Field '" + classField.getName() + "'");
+ throw new IllegalStateException("Could not access Field '" + classField.getName() + "'", e);
}
}
}