public final class Messages extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
error(java.lang.Object message)
Prints an error message to standard error.
|
static void |
info(java.lang.Object message)
Prints an info message to standard error.
|
static java.lang.String |
message(java.lang.String key)
Return a localized message.
|
static java.lang.String |
message(java.lang.String key,
java.lang.Object... values)
Format a localized message.
|
static java.lang.String |
prefixed(java.lang.String prefix,
java.lang.String message) |
static java.lang.String |
prefixed(java.lang.String prefix,
java.lang.String message,
java.lang.String color) |
static void |
printPrefixed(java.lang.String prefix,
java.lang.String message,
java.lang.String color) |
static void |
printStackTrace(java.lang.Throwable e)
Prints an error stack trace to standard error.
|
static void |
warning(java.lang.Object message)
Prints a warning to standard error.
|
public static java.lang.String message(java.lang.String key, java.lang.Object... values)
public static java.lang.String message(java.lang.String key)
public static java.lang.String prefixed(java.lang.String prefix, java.lang.String message)
public static java.lang.String prefixed(java.lang.String prefix, java.lang.String message, java.lang.String color)
public static void printPrefixed(java.lang.String prefix, java.lang.String message, java.lang.String color)
public static void error(java.lang.Object message)
public static void warning(java.lang.Object message)
public static void info(java.lang.Object message)
public static void printStackTrace(java.lang.Throwable e)