Package com.tailf.conf
Class ErrorMessageFormatter
Object
com.tailf.conf.ErrorMessageFormatter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorVerbosity
Get the default verbosity level for reported errors This governs error verbosity for all Formatters which has not specifically set their local verbosity level withsetErrorVerbosity(ErrorVerbosity)
Get the local verbosity level for reported errors If this verbosity is null the the default level governs the error verbosity of this FormatterCompose 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 withsetErrorVerbosity(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
-
Constructor Details
-
ErrorMessageFormatter
public ErrorMessageFormatter()
-
-
Method Details
-
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 withsetErrorVerbosity(ErrorVerbosity)
- Returns:
- the default ErrorVerbosity
-
setDefaultErrorVerbosity
Set the default verbosity level for reported errors This governs error verbosity for all Formatters which has not specifically set their local verbosity level withsetErrorVerbosity(ErrorVerbosity)
- Parameters:
verbosity
- if null current value is left unchanged
-
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- Returns:
- the local errorVerbosity
-
setErrorVerbosity
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- Parameters:
verbosity
-
-
initCauseMessage
Compose a exception message from the top and initial cause messages.- Parameters:
e
-- Returns:
- the resulting exception message
-