mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
support multiple configuration
This commit is contained in:
parent
730d7fefe9
commit
2e6efdd16f
59 changed files with 1136 additions and 608 deletions
|
|
@ -50,4 +50,20 @@ public class Printer {
|
|||
public static void writeErr(final String message, final Object... params) {
|
||||
System.err.println(new MessageFormat(message, Locale.ENGLISH).format(params));
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes to standard error channel and prints a stacktrace.
|
||||
*
|
||||
* @param ex the exception
|
||||
* @param message the message with placeholders
|
||||
* @param params the params
|
||||
*/
|
||||
@SuppressWarnings("squid:S1148")
|
||||
public static void writeErr(final Exception ex, final String message, final Object... params) {
|
||||
writeErr(message, params);
|
||||
if (ex != null) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue