public class DefaultExceptionTranslationService extends Object implements ExceptionTranslationService
ExceptionTranslationService, toString(Throwable) return message handled by
first handler which can handle or by default handler.| Constructor and Description |
|---|
DefaultExceptionTranslationService() |
| Modifier and Type | Method and Description |
|---|---|
ExceptionTranslationHandler |
getDefaultHandler() |
Collection<ExceptionTranslationHandler> |
getExceptionHandlers() |
void |
setDefaultHandler(ExceptionTranslationHandler defaultHandler) |
void |
setExceptionHandlers(Collection<ExceptionTranslationHandler> exceptionHandlers) |
String |
toString(Throwable exception) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanHandlepublic String toString(Throwable exception)
toString in interface ExceptionTranslationHandlerpublic ExceptionTranslationHandler getDefaultHandler()
public void setDefaultHandler(ExceptionTranslationHandler defaultHandler)
public Collection<ExceptionTranslationHandler> getExceptionHandlers()
public void setExceptionHandlers(Collection<ExceptionTranslationHandler> exceptionHandlers)
Copyright © 2018. All rights reserved.