public class DefaultExceptionHandler extends Object implements ExceptionHandler
Example:
DefaultExceptionHandler.instance().handleException(
Logger.SEVERE,
this,
TestConnectionResource.ERROR_TESTING_CONNECTION
.getValue(), ex);
| Modifier and Type | Method and Description |
|---|---|
void |
handleException(int severity,
Object object,
String message,
Throwable throwable)
Handles the exception.
|
static DefaultExceptionHandler |
instance()
Returns an singleton instance the DefaultExceptionHandler
|
void |
logException(int severity,
Object object,
String message,
Throwable throwable)
Logs exception.
|
public static DefaultExceptionHandler instance()
public void handleException(int severity,
Object object,
String message,
Throwable throwable)
ExceptionHandlerhandleException in interface ExceptionHandlerseverity - the severityobject - the objectmessage - the messagethrowable - the throwablepublic void logException(int severity,
Object object,
String message,
Throwable throwable)
ExceptionHandlerlogException in interface ExceptionHandlerseverity - the severityobject - the objectmessage - the messagethrowable - the throwableCopyright © 2010-2020 Toolsverse. All Rights Reserved.