Package utils

Source Code of utils.ExceptionFactory

package utils;

import exceptions.AppException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ExceptionFactory {
    static Logger log = LoggerFactory.getLogger(ExceptionFactory.class);

    public static AppException getNewAppException(Exception exception) {
        log.error(exception.getMessage(), exception);
        AppException app = new AppException();
        app.initCause(exception);
        return app;
    }
}
TOP

Related Classes of utils.ExceptionFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.