Code example for MissingResourceException

1
            if ("XXX".equals(key)) {
                return "-1"; 
            } 
            int res = getFractionDigitsNative(key);
            if(res < 0) {
                throw new MissingResourceException("couldn't find resource.", 
                        ISO4CurrenciesToDigits.class.getName(), key);
            } 
            return "" + res;
        } 
 
    } 
 
    /** 
     * Internal ResourceBundle mimicking the Harmony "Country_*" bundles. Keys 
     * are the two-letter ISO country codes. Values are the printable country 
     * names in terms of the specified locale. An example entry is "US"->"United 
     * States". 
     */ 
    private static final class Country extends ResourceBundle {
        private String locale;