
package de.ivu.elect.jee.exception;

import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;

public class ElectCommonExceptionHandlerFactory extends ExceptionHandlerFactory {

  private final ExceptionHandlerFactory parent;

  public ElectCommonExceptionHandlerFactory(ExceptionHandlerFactory parent) {
    super();

    this.parent = parent;
  }

  @Override
  public ExceptionHandler getExceptionHandler() {
    return new ElectCommonExceptionHandler(parent.getExceptionHandler());
  }
}
