Package exceptions

Examples of exceptions.AppException.initCause()


    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;
    }
}
View Full Code Here

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.