Package org.jitterbit.util.version

Examples of org.jitterbit.util.version.UnsupportedVersionException


        if (serverVersion.isEarlierThan(requiredVersion)) {
            String msg = MessageFormat.format(
                            "The current version of the Jitterbit Integration Environment requires a minimum server version " +
                            "of {0}. The server {1} is running version {2}. All connections are refused.",
                            new Object[] { requiredVersion, serverName, serverVersion });
            throw new UnsupportedVersionException(serverVersion, msg);
        }
    }
View Full Code Here


        String msg = MessageFormat.format(
                        "{0} is running a pre-release version of the Jitterbit Integration Server. " +
                        "It is not compatible with this version of the client, and all connections are refused." +
                        "\n\nServer version: {1}\nClient version: {2}",
                        new Object[] { serverName, serverVersion, Versions.CURRENT });
        throw new UnsupportedVersionException(serverVersion, msg);
    }
View Full Code Here

                                                                    throws UnsupportedVersionException {
        Version required = projectFile.getMinimumVersionRequired();
        if (required.isLaterThan(Versions.CURRENT)) {
            String msg = "The project \"" + projectName + "\" requires version " + required + " or later of "
                    + ProductNames.CLIENT + ". You are " + "currently using version " + Versions.CURRENT + ".";
            throw new UnsupportedVersionException(required, msg);
        }
    }
View Full Code Here

        if (version.isEarlierThan(Versions.V_1_0_0)) {
            String msg = "'" + projectName + "' was created with a pre-release " + "version of the "
                    + ProductNames.CLIENT + ". It cannot "
                    + "be opened with this version.\n\nYou can try to open the project "
                    + "again, in a later release, since more backward compatibility may " + "be added.";
            throw new UnsupportedVersionException(version, msg);
        }
    }
View Full Code Here

     * @throws UnsupportedVersionException
     *             if JitterPacks were not supported in the specified version.
     */
    static JitterPackFormat getFormat(Version version, JitterPackParameters params) throws UnsupportedVersionException {
        if (version.isEarlierThan(FIRST_VERSION_SUPPORTED)) {
            throw new UnsupportedVersionException(version, "The minimum version required is "
                            + FIRST_VERSION_SUPPORTED.toString());
        }
        if (version.isEarlierThan(Versions.V_1_1_0)) {
            throw new UnsupportedOperationException("The version " + version.getPatchLevelString()
                            + " is no longer supported.");
View Full Code Here

    private void checkVersion(JitterPackDescriptor descriptor) throws UnsupportedVersionException {
        Version current = Versions.CURRENT;
        Version required = descriptor.getVersionInfo().minimumRequired();
        if (current.isEarlierThan(required)) {
            throw new UnsupportedVersionException(current, "This " + JitterPackConstants.SINGULAR + " must be opened "
                            + "in version " + required + " or later. The current version is " + current + ".");
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.util.version.UnsupportedVersionException

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.