Package kr.inamatrix.danguscore.shared.exceptions

Examples of kr.inamatrix.danguscore.shared.exceptions.ScoreIsNotAvailableException


            if (StringUtil.isEmptyString(_name)) {
                throw new IdIsNotAvailableException();
            } else if (_password == null || _passwordConfirm == null || !StringUtil.isEquals(_password, _passwordConfirm)) {
                throw new PasswordDoesNotConfirmException();
            } else if (_score < 0 || _score > 5000) {
                throw new ScoreIsNotAvailableException();
            }
            return new GamerInfoModel(this);
        }
View Full Code Here


        GamerInfoModel.Builder builder = new GamerInfoModel.Builder(getIdField().getValue().toString(), getPasswordField().getValue());
        builder.setPasswordConfirm(getPasswordConfirmField().getValue());
        try {
            builder.setScore(getScoreField().getValue().intValue());           
        } catch (Exception e) {
            throw new ScoreIsNotAvailableException();
        }
        builder.setEmail(getEmailField().getValue());
        builder.setRegistDate(System.currentTimeMillis());
        return builder.build();
    }
View Full Code Here

TOP

Related Classes of kr.inamatrix.danguscore.shared.exceptions.ScoreIsNotAvailableException

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.