/* (non-Javadoc)
* @see org.wymiwyg.rwcf.ExceptionHandler#handleException(org.wymiwyg.rwcf.HandlerException, org.wymiwyg.rwcf.Request, org.wymiwyg.rwcf.Response)
*/
public void handleException(Exception exception, Request request, Response response) throws HandlerException {
ResponseStatus status;
if (exception instanceof HandlerException) {
status = ((HandlerException)exception).getStatus();
} else {
status = ResponseStatus.INTERNAL_SERVER_ERROR;
}
if (status.equals(ResponseStatus.INTERNAL_SERVER_ERROR)) {
log.error("Internal Server Error", exception);
} else {
log.info("Exception handling request", exception);
}
response.setResponseStatus(status);