+++ /dev/null
-/*
- * Copyright (C) 2016 - 2018 Free Software Foundation
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcoreee.exceptions;
-
-import javax.faces.context.ExceptionHandler;
-import javax.faces.context.ExceptionHandlerFactory;
-
-/**
- * A custom factory for exception handler. This class is heavily based on this
- * [1] example.
- * <p>
- * 1: https://wmarkito.wordpress.com/2012/04/05/adding-global-exception-handling-using-jsf-2-x-exceptionhandler/
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-public class CustomExceptionHandlerFactory extends ExceptionHandlerFactory {
-
- /**
- * Parent exception handler
- */
- private final ExceptionHandlerFactory parent;
-
- public CustomExceptionHandlerFactory (final ExceptionHandlerFactory parent) {
- // Set it here
- this.parent = parent;
- }
-
- @Override
- public ExceptionHandler getExceptionHandler () {
-
- ExceptionHandler handler = new CustomExceptionHandler(this.parent.getExceptionHandler());
-
- return handler;
- }
-
-}