Examples of IllegalVersionException


Examples of org.jitterbit.util.version.IllegalVersionException

     *             if the key is missing or contains an invalid version string
     */
    public static Version getVersion(String key) throws IllegalVersionException {
        String s = props.getString(key, null);
        if (s == null) {
            throw new IllegalVersionException("No version string exists for the key \"" + key + "\"");
        }
        return VersionFactory.fromString(s);
    }
View Full Code Here

Examples of org.jitterbit.util.version.IllegalVersionException

        } catch (IllegalArgumentException ex) {
            String v = MessageFormat.format(INVALID_VERSION_FORMAT, new int[] { major, minor, patch, build });
            if ((comment != null) && (comment.length() > 0)) {
                v += "-" + comment; //$NON-NLS-1$
            }
            throw new IllegalVersionException("build.properties contains invalid version information: " + v); //$NON-NLS-1$
        }
    }
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.