public interface Formatter
| Modifier and Type | Method and Description |
|---|---|
String |
format(String msg,
Object... params)
Format msg with params and return.
|
String format(String msg, Object... params) throws Exception
NOTE VERY IMPORTANT: Sub implementation can decide whether discard one or more arguments, so make sure you are using right Formatter in right usage.
msg - msg to be formatted. If this is null or empty but params provided, params
still should be formatted.params - params to format msg. maybe empty.Exception - any type of Exception can be thrown by implementation when
format failed.