Package | Description |
---|---|
sirius.kernel.health |
Provides tools to record the system state and to log and handle exceptions.
|
Modifier and Type | Method and Description |
---|---|
static Exceptions.ErrorHandler |
Exceptions.createHandled()
Generates a new
Exceptions.ErrorHandler which creates a HandledException without actually logging or
processing it. |
Exceptions.ErrorHandler |
Exceptions.ErrorHandler.error(Throwable e)
Specifies which exception leaded to the error being handled.
|
static Exceptions.ErrorHandler |
Exceptions.handle()
Generates a new
Exceptions.ErrorHandler which gracefully handles all kinds of errors |
Exceptions.ErrorHandler |
Exceptions.ErrorHandler.set(String parameter,
Object value)
Specifies a parameter which is replaced in the generated error message.
|
Exceptions.ErrorHandler |
Exceptions.ErrorHandler.to(Log log)
Specifies the logger which is used to log the generated exception.
|
Exceptions.ErrorHandler |
Exceptions.ErrorHandler.withNLSKey(String key)
Specifies the i18n key which is passed to
NLS.fmtr(String) to create the internal formatter
used to generate the translated error message. |
Exceptions.ErrorHandler |
Exceptions.ErrorHandler.withSystemErrorMessage(String englishMessagePattern,
Object... params)
Sets an untranslated error message, used by rare system errors.
|
Copyright © 2018. All rights reserved.