/** * Called when an exception occurred. * @param exception The exception. */ public void exceptionOccurred(Exception exception) { future.setException(exception); } }
public void run() { ret.setException(e); } });
public void run() { ret.setException(e); } });
public void run() { ret.setException(e); } });
public void run() { // ret.setResult(interpreter.getNFPropertyNames()); ret.setException(e); } });
public void run() { // interpreter.removeNFProperty(name); // ret.setResult(null); ret.setException(e); } });
public void exceptionOccurred(Exception exception) { ret.setException(exception); } });
public void exceptionOccurred(Exception exception) { ret.setException(exception); } });
public void exceptionOccurred(Exception exception) { ret.setException(exception); } });
public void resultAvailable(String result) { // System.out.println(agent.getComponentIdentifier()+": testTerminate2"); tmp.setException(new RuntimeException("Termination did not occur: "+result)); } public void exceptionOccurred(Exception exception)
public void exceptionOccurred(Exception exception) { // if(type.toString().indexOf("IFile")!=-1) // System.out.println("Ex result: "+exception); if(!ret.isDone()) { ret.setException(exception); } } });
public void exceptionOccurred(final Exception exception) { nosteps = true; exitState(); ret.setException(exception); } };
public void customResultAvailable(Boolean res) { if(res.booleanValue()) { ret.setResult(componentfactory); } else { ret.setException(new ComponentCreationException("No factory found for: "+model, ComponentCreationException.REASON_NO_COMPONENT_FACTORY)); } } }));
public void exceptionOccurred(Exception exception) { synchronized(exceptionCounter) { exceptionCounter.resultAvailable(null); if (exceptionCounter.getCnt() == 2) { ret.setException(exception); } } } };
public void exceptionOccurred(Exception exception) { synchronized(exceptionCounter) { exceptionCounter.resultAvailable(null); if (exceptionCounter.getCnt() == 2) { ret.setException(exception); } } } };
public void exceptionOccurred(Exception exception) { if(!ResolveInterceptor.SERVICEMETHODS.contains(sic.getMethod())) { rebind(sic).addResultListener(new DelegationResultListener(ret)); } else { ret.setException(exception); } } });
public void resultAvailable(Object result) { if (result != null) ((IComponentFactory)result).loadModel(model, imports, rid).addResultListener(ia.createResultListener(new DelegationResultListener(ret))); else ret.setException(new RuntimeException("Factory not found: " + model)); }
public void resultAvailable(Object result) { if(result != null) { ((IComponentFactory)result).getComponentType(model, imports, rid) .addResultListener(ia.createResultListener(new DelegationResultListener(ret))); } else { ret.setException(new RuntimeException("Factory not found: " + model)); } }
public void exceptionOccurred(Exception exception) { if(!ResolveInterceptor.SERVICEMETHODS.contains(sic.getMethod())) { rebind(sic).addResultListener(new DelegationResultListener(ret)); } else { ret.setException(exception); } } });
public void exceptionOccurred(Exception exception) { // System.out.println("send message not executed"); task.getFuture().setException(new MessageFailureException(task.getMessage(), task.getMessageType(), null, "Message service terminated.")); // isempty = true; // messages.clear(); } });