Examples of UpdateException


Examples of org.apache.aries.application.management.UpdateException

        new MethodCall(AriesApplicationContextManager.class, "getApplicationContexts"),
        Collections.singleton(ctx));   
   
    Skeleton.getSkeleton(ctxMgr).setThrows(
        new MethodCall(AriesApplicationContextManager.class, "update", AriesApplication.class, DeploymentMetadata.class),
        new UpdateException("", null, false, null));
   
    _appMgr.setApplicationContextManager(ctxMgr);

    try {
      _appMgr.update(app, depMf);
View Full Code Here

Examples of org.apache.aries.application.management.UpdateException

        new MethodCall(AriesApplicationContextManager.class, "getApplicationContexts"),
        Collections.singleton(ctx));   
   
    Skeleton.getSkeleton(ctxMgr).setThrows(
        new MethodCall(AriesApplicationContextManager.class, "update", AriesApplication.class, DeploymentMetadata.class),
        new UpdateException("", null, true, null));
   
    _appMgr.setApplicationContextManager(ctxMgr);

    try {
      _appMgr.update(app, depMf);
View Full Code Here

Examples of org.apache.struts2.showcase.exception.UpdateException

    return intStore(object.getClass(), object).getId();
  }

  public IdEntity update(IdEntity object) throws UpdateException {
    if (object == null) {
      throw new UpdateException("Cannot update null object.");
    }
    if (get(object.getClass(), object.getId()) == null) {
      throw new UpdateException("Object to update not found.");
    }
    return intStore(object.getClass(), object);
  }
View Full Code Here

Examples of org.apache.struts2.showcase.exception.UpdateException

        return intStore(object.getClass(), object).getId();
    }

    public IdEntity update ( IdEntity object ) throws UpdateException {
        if (object == null) {
            throw new UpdateException("Cannot update null object.");
        }
        if ( get(object.getClass(), object.getId())==null ) {
            throw new UpdateException("Object to update not found.");
        }
        return intStore(object.getClass(), object);
    }
View Full Code Here

Examples of org.apache.struts2.showcase.exception.UpdateException

    return intStore(object.getClass(), object).getId();
  }

  public IdEntity update(IdEntity object) throws UpdateException {
    if (object == null) {
      throw new UpdateException("Cannot update null object.");
    }
    if (get(object.getClass(), object.getId()) == null) {
      throw new UpdateException("Object to update not found.");
    }
    return intStore(object.getClass(), object);
  }
View Full Code Here

Examples of org.apache.struts2.showcase.exception.UpdateException

        return intStore(object.getClass(), object).getId();
    }

    public IdEntity update ( IdEntity object ) throws UpdateException {
        if (object == null) {
            throw new UpdateException("Cannot update null object.");
        }
        if ( get(object.getClass(), object.getId())==null ) {
            throw new UpdateException("Object to update not found.");
        }
        return intStore(object.getClass(), object);
    }
View Full Code Here

Examples of org.mongodb.morphia.query.UpdateException

        return savedKeys;
    }

    protected <T> Key<T> save(final DBCollection dbColl, final T entity, final WriteConcern wc) {
        if (entity == null) {
            throw new UpdateException("Can not persist a null entity");
        }

        final MappedClass mc = mapper.getMappedClass(entity);
        if (mc.getAnnotation(NotSaved.class) != null) {
            throw new MappingException(
View Full Code Here

Examples of org.owasp.dependencycheck.data.update.exception.UpdateException

                } catch (InterruptedException ex) {
                    downloadExecutors.shutdownNow();
                    processExecutor.shutdownNow();

                    LOGGER.log(Level.FINE, "Thread was interrupted during download", ex);
                    throw new UpdateException("The download was interrupted", ex);
                } catch (ExecutionException ex) {
                    downloadExecutors.shutdownNow();
                    processExecutor.shutdownNow();

                    LOGGER.log(Level.FINE, "Thread was interrupted during download execution", ex);
                    throw new UpdateException("The execution of the download was interrupted", ex);
                }
                if (task == null) {
                    downloadExecutors.shutdownNow();
                    processExecutor.shutdownNow();
                    LOGGER.log(Level.FINE, "Thread was interrupted during download");
                    throw new UpdateException("The download was interrupted; unable to complete the update");
                } else {
                    processFutures.add(task);
                }
            }

            for (Future<ProcessTask> future : processFutures) {
                try {
                    final ProcessTask task = future.get();
                    if (task.getException() != null) {
                        throw task.getException();
                    }
                } catch (InterruptedException ex) {
                    processExecutor.shutdownNow();
                    LOGGER.log(Level.FINE, "Thread was interrupted during processing", ex);
                    throw new UpdateException(ex);
                } catch (ExecutionException ex) {
                    processExecutor.shutdownNow();
                    LOGGER.log(Level.FINE, "Execution Exception during process", ex);
                    throw new UpdateException(ex);
                } finally {
                    processExecutor.shutdown();
                }
            }
View Full Code Here

Examples of primarydatamanager.mirrorupdater.UpdateException

 
 
 
  public String[] listFiles() throws UpdateException {
    if (! mDir.exists()) {
      throw new UpdateException("Directory does not exist: "
        + mDir.getAbsolutePath());
    }
   
    return mDir.list();
  }
View Full Code Here

Examples of primarydatamanager.mirrorupdater.UpdateException


  public void deleteFile(String fileName) throws UpdateException {
    File file = new File(mDir, fileName);
    if (! file.delete()) {
      throw new UpdateException("Deleting file failed: " + fileName);
    }
  }
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.