value = getFieldProperty(s);
} catch (Exception e) {
getEnvironment().getOutput().printStackTrace(e);
value = e.toString();
if (!(e instanceof JemmyException) && !quiet) {
throw new JemmyException("Exception while getting property \"" + s + "\"", e);
}
}
properties.put(s, value);
}
}
if (cls.isAnnotationPresent(MethodProperties.class)) {
for (String s : cls.getAnnotation(MethodProperties.class).value()) {
Object value;
try {
value = getMethodProperty(s);
} catch (Exception e) {
getEnvironment().getOutput().printStackTrace(e);
value = e.toString();
if (!(e instanceof JemmyException) && !quiet) {
throw new JemmyException("Exception while getting property \"" + s + "\"", e);
}
}
properties.put(s, value);
}
}