< prev index next >
src/java.desktop/share/classes/javax/imageio/ImageWriter.java
Print this page
*** 1961,1980 ****
*/
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, imageIndex, warning);
}
}
--- 1961,1980 ----
*/
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, imageIndex, warning);
}
}
< prev index next >