com.jexbox.connector.jsf.JexboxExceptionHandlerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jexbox-jsf Show documentation
Show all versions of jexbox-jsf Show documentation
Jexbox JSF connector hooks into ExceptionHandlerWrapper, so any uncaught exceptions in your JSF application will be sent to your Jexbox database. The connector extracts complete exception stack trace, including nested exceptions, error message and system properties and page/component traces
package com.jexbox.connector.jsf;
import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;
import com.jexbox.connector.http.JexboxConnectorHttp;
public abstract class JexboxExceptionHandlerFactory extends ExceptionHandlerFactory {
private ExceptionHandlerFactory _parent;
private JexboxConnectorHttp _jexbox = null;
public JexboxExceptionHandlerFactory(ExceptionHandlerFactory parent) {
_parent = parent;
_jexbox = createJexboxConnectorHttp();
}
protected abstract JexboxConnectorHttp createJexboxConnectorHttp();
@Override
public ExceptionHandler getExceptionHandler() {
ExceptionHandler handler = new JexboxExceptionHandler(_jexbox, _parent.getExceptionHandler());
return handler;
}
}