< prev index next >
src/java.desktop/share/classes/javax/imageio/ImageReader.java
Print this page
*** 2459,2478 ****
*/
ResourceBundle bundle = null;
try {
bundle = ResourceBundle.getBundle(baseName, locale, this.getClass().getModule());
} catch (MissingResourceException mre) {
! throw new IllegalArgumentException("Bundle not found!");
}
String warning = null;
try {
warning = bundle.getString(keyword);
} catch (ClassCastException cce) {
! throw new IllegalArgumentException("Resource is not a String!");
} catch (MissingResourceException mre) {
! throw new IllegalArgumentException("Resource is missing!");
}
listener.warningOccurred(this, warning);
}
}
--- 2459,2478 ----
*/
ResourceBundle bundle = null;
try {
bundle = ResourceBundle.getBundle(baseName, locale, this.getClass().getModule());
} catch (MissingResourceException mre) {
! throw new IllegalArgumentException("Bundle not found!", mre);
}
String warning = null;
try {
warning = bundle.getString(keyword);
} catch (ClassCastException cce) {
! throw new IllegalArgumentException("Resource is not a String!", cce);
} catch (MissingResourceException mre) {
! throw new IllegalArgumentException("Resource is missing!", mre);
}
listener.warningOccurred(this, warning);
}
}
< prev index next >