I have an error handling page that sends an email to the administrators with details about an exception when it occurs. However, some exceptions are not bubbling up to the top of the stacktrace because PrimeFacesPhaseListener, I was wondering if there is a particular reason for having PrimeFacesPhaseListener catch an exception and not rethrow it.
For example:
Code: Select all
private void handleAjaxRequest(FacesContext facesContext) throws IOException {
...
}catch(IOException exception) {
exception.printStackTrace();
}
Code: Select all
public static final ContextCallback RENDER_PARTIAL_RESPONSE = new ContextCallback() {
public void invokeContextCallback(FacesContext facesContext, UIComponent component) {
try {
((AjaxComponent) component).encodePartially(facesContext);
} catch (IOException e) {
e.printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();
}
}
};
Code: Select all
private void initPartialResponseWriter(FacesContext facesContext) {
if(facesContext.getResponseWriter() != null)
return;
try {
...
}catch(IOException exception) {
exception.printStackTrace();
}
}