We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best to use MessageFormat and ResourceBundle. It helps with error messages and localization.
MessageFormat
ResourceBundle
https://www.javaworld.com/article/2075897/testing-debugging/exceptional-practices--part-3.html
The text was updated successfully, but these errors were encountered:
Allow customizing exceptions with a custom ResourcdBundle.
ResourcdBundle
public SomeException(String message) { //get ResourceBundle from jar resources as a default SomeException(ResourceBundle bundle, String message) }
SomeException(ResourceBundle bundle, String message) could be called directly to provide error customization in end user job dsl and pipeline scripts.
SomeException(ResourceBundle bundle, String message)
Sorry, something went wrong.
Simple example
https://github.com/jenkinsci/jira-plugin/blob/4e6793fa8a70f746dea03827dc2fdf19dbbd69d3/src/test/java/JiraConfig.java#L5
https://github.com/jenkinsci/jira-plugin/tree/4e6793fa8a70f746dea03827dc2fdf19dbbd69d3/src/test/resources
Search jenkinsci org for ResourceBundle to see additional examples.
No branches or pull requests
Best to use
MessageFormat
andResourceBundle
. It helps with error messages and localization.https://www.javaworld.com/article/2075897/testing-debugging/exceptional-practices--part-3.html
The text was updated successfully, but these errors were encountered: