Package info.jtrac.mylyn.exception

Examples of info.jtrac.mylyn.exception.InvalidRefIdException


    private String prefixCode;
   
    public ItemRefId(String refId) throws InvalidRefIdException {
        int pos = refId.indexOf('-');
        if (pos == -1) {
            throw new InvalidRefIdException("invalid ref id");
        }
        try {
            sequenceNum = Long.parseLong(refId.substring(pos + 1));
        } catch (NumberFormatException e) {
            throw new InvalidRefIdException("invalid ref id");
        }
        prefixCode = refId.substring(0, pos).toUpperCase();
    }
View Full Code Here

TOP

Related Classes of info.jtrac.mylyn.exception.InvalidRefIdException

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.