Skip to content
New issue

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

Better localized error messages #106

Open
samrocketman opened this issue Oct 17, 2017 · 2 comments
Open

Better localized error messages #106

samrocketman opened this issue Oct 17, 2017 · 2 comments
Milestone

Comments

@samrocketman
Copy link
Owner

Best to use MessageFormat and ResourceBundle. It helps with error messages and localization.

https://www.javaworld.com/article/2075897/testing-debugging/exceptional-practices--part-3.html

@samrocketman samrocketman added this to the jervis-1.1 milestone Oct 17, 2017
@samrocketman
Copy link
Owner Author

samrocketman commented Oct 17, 2017

Allow customizing exceptions with a custom 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.

@samrocketman
Copy link
Owner Author

samrocketman commented Oct 17, 2017

@samrocketman samrocketman removed this from the jervis-1.1 milestone Dec 19, 2022
@samrocketman samrocketman added this to the jervis-2.2 milestone Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant