Package org.analogweb.core
Class DefaultExceptionHandler
- java.lang.Object
-
- org.analogweb.core.DefaultExceptionHandler
-
- All Implemented Interfaces:
Disposable
,ExceptionHandler
,Module
,ModulesAware
public class DefaultExceptionHandler extends Object implements ExceptionHandler, ModulesAware
DefaultExceptionHandler
implementation.- Author:
- snowgoose
-
-
Constructor Summary
Constructors Constructor Description DefaultExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose all the states.protected List<ExceptionMapper>
getExceptionMappers()
Object
handleException(Exception exception)
Handle causedThrowable
.protected Object
internalServerError(Exception e)
protected void
logThrowable(Exception exception)
void
setModules(Modules modules)
protected Object
verifyCause(Exception exception)
protected Object
verifyException(Throwable exception)
-
-
-
Field Detail
-
log
protected static final Log log
-
-
Method Detail
-
handleException
public Object handleException(Exception exception)
Description copied from interface:ExceptionHandler
- Specified by:
handleException
in interfaceExceptionHandler
- Parameters:
exception
-Exception
- Returns:
- Result of exception handling.(
Renderable
etc...)
-
getExceptionMappers
protected List<ExceptionMapper> getExceptionMappers()
-
logThrowable
protected void logThrowable(Exception exception)
-
dispose
public void dispose()
Description copied from interface:Disposable
Dispose all the states.- Specified by:
dispose
in interfaceDisposable
-
setModules
public void setModules(Modules modules)
- Specified by:
setModules
in interfaceModulesAware
-
-