1 5 package org.exoplatform.portlet.exomvc.exception; 6 7 import javax.portlet.ActionRequest; 8 import javax.portlet.ActionResponse; 9 import javax.portlet.RenderRequest; 10 import javax.portlet.RenderResponse; 11 import org.exoplatform.portlet.exomvc.config.PageConfig; 12 import org.exoplatform.commons.utils.ExceptionUtil; 13 18 public class DefaultExceptionHandler implements ExceptionHandler { 19 20 public boolean canHandle(Throwable t) { return true ; } 21 22 public void handle(PageConfig config, Throwable t, ActionRequest req, ActionResponse res) { 23 t = ExceptionUtil.getRootCause(t) ; 24 String trace = ExceptionUtil.getExoStackTrace(t) ; 25 } 27 28 public void handle(PageConfig config, Throwable t, RenderRequest req, RenderResponse res) { 29 t = ExceptionUtil.getRootCause(t) ; 30 String trace = ExceptionUtil.getExoStackTrace(t) ; 31 } 33 } | Popular Tags |