throw GreeterExceptionBundle.EXCEPTIONS.localeNotValid(locale);
}
GreetingMessagesBundle messages = Messages.getBundle(GreetingMessagesBundle.class, newLocale);
GreeterLogger.LOGGER.logHelloMessageSentForLocale(locale);
return messages.helloToYou(name);
}
// ======================================================================
// this is a particularly contrived example. It is here merely to demonstrate
// the throwing of a localized exception with another exception as the cause.