Package exceptions

Examples of exceptions.AppException


                subject = Messages.get("mail.confirm.ask.subject");
                message = Messages.get("mail.confirm.ask.message", url.toString());
                toMail = user.email; // == email parameter
                break;
            default:
                throw new AppException("unhandled token type " + type);
        }

        log.debug("sendMailResetLink: url = {}", url);
//        Mail.Envelop envelop = new Mail.Envelop(subject, message, toMail);
//        Mail.sendMail(envelop);
View Full Code Here


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

     * @return an encrypted password of the clear string
     * @throws exceptions.AppException APP Exception, from NoSuchAlgorithmException
     */
    public static String createPassword(String clearString) throws AppException {
        if (clearString == null) {
            throw new AppException("No password defined!");
        }
        return BCrypt.hashpw(clearString, BCrypt.gensalt());
    }
View Full Code Here

TOP

Related Classes of exceptions.AppException

Copyright © 2018 www.massapicom. 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.