Code example for MissingResourceException

Methods: getMessage

0
    private static String getString(final ResourceBundle bundle, final String key) {
        try { 
            return bundle.getString(key);
        } 
        catch (final MissingResourceException ex) {
            assert (false) : ex.getMessage();
            return '!' + key + '!';
        } 
    } 
     
}