commons-lang
commons-lang copied to clipboard
LANG-1369: Formatted and Paramaterized Exception Classes
Would you please be so kind, and suggest a use case, which your pr is going to address. Cause, I don't see it immediately.
Also a suggestion: Out in the wild, there are quite a number of Pattern format styles, including, for example
Hi, guys, my name is {}.
Hi, guys, my name is %s.
Hi, guys, my name is %1.
(Sure, a bit of digging would reveal others.) So, I would suggest, that
- You replace the PatternFormatter with an interface, and a default implementation.
- You replace the static ExceptionFactory with instance methods, that use a configurable instance. The static methods might be reimplemented using an instance of the default implementation.