public class ErrorMessageFormatter extends Object
| Constructor and Description |
|---|
ErrorMessageFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static ErrorVerbosity |
getDefaultErrorVerbosity()
Get the default verbosity level for reported errors
This governs error verbosity for all Formatters which has not
specifically set their local verbosity level with
ErrorMessageFormatter.setErrorVerbosity(ErrorVerbosity) |
ErrorVerbosity |
getErrorVerbosity()
Get the local verbosity level for reported errors
If this verbosity is null the the default level governs the error
verbosity of this Formatter
|
String |
initCauseMessage(Throwable e)
Compose a exception message from the top and initial cause messages.
|
static void |
setDefaultErrorVerbosity(ErrorVerbosity verbosity)
Set the default verbosity level for reported errors
This governs error verbosity for all Formatters which has not
specifically set their local verbosity level with
ErrorMessageFormatter.setErrorVerbosity(ErrorVerbosity) |
void |
setErrorVerbosity(ErrorVerbosity verbosity)
set the local verbosity level for reported errors
If this verbosity is set to null the the default level governs the error
verbosity of this Formatter
|
public static ErrorVerbosity getDefaultErrorVerbosity()
ErrorMessageFormatter.setErrorVerbosity(ErrorVerbosity)public static void setDefaultErrorVerbosity(ErrorVerbosity verbosity)
ErrorMessageFormatter.setErrorVerbosity(ErrorVerbosity)verbosity - if null current value is left unchangedpublic ErrorVerbosity getErrorVerbosity()
public void setErrorVerbosity(ErrorVerbosity verbosity)
verbosity -