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
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
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()
setErrorVerbosity(ErrorVerbosity)public ErrorVerbosity getErrorVerbosity()
public String initCauseMessage(Throwable e)
e - public static void setDefaultErrorVerbosity(ErrorVerbosity verbosity)
setErrorVerbosity(ErrorVerbosity)verbosity - if null current value is left unchangedpublic void setErrorVerbosity(ErrorVerbosity verbosity)
verbosity -