Examples of OfflineException


Examples of org.jayasoft.woj.client.services.exception.OfflineException

        if(!isAutenticate()) {
          throw new NotSignedException(Messages.getString("common.badlogin.message")); //$NON-NLS-1$
        }
        if (isOffline()) {
          LOGGER.debug("Offline mode"); //$NON-NLS-1$
            throw new OfflineException();
        }
        String jarMd5 = computeMD5(jarPath);
        if(jarMd5 == null) {
            return null;
        }
View Full Code Here

Examples of org.jayasoft.woj.client.services.exception.OfflineException

        if(!isAutenticate()) {
          throw new NotSignedException(Messages.getString("common.badlogin.message")); //$NON-NLS-1$
        }
        if (isOffline()) {
          LOGGER.debug("Offline mode"); //$NON-NLS-1$
            throw new OfflineException();
        }
        ModuleInfo info = _wojCache.getModuleInfo(md5);
        if(info != null && info.isKnown()) {
          LOGGER.debug("found in cache:"+info); //$NON-NLS-1$
            return info;
View Full Code Here

Examples of org.jayasoft.woj.client.services.exception.OfflineException

     * Check if we can connect to the server, throws appropriate exception otherwise
     */
    void checkCanConnectServer() throws ServiceException {
        if (isOffline()) {
          LOGGER.debug("Offline mode"); //$NON-NLS-1$
            throw new OfflineException();
        }
        if (!(_lastFailedTime < 0 ||  _lastFailedTime+DELAY_BEFORE_RETRY < System.currentTimeMillis())) {
          LOGGER.info("prevent connection to server.(delay before retry not reached)"); //$NON-NLS-1$
            throw new ServiceNotAvailableException(Messages.getString("services.error.serverdown")); //$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.