Examples of ExecutionException


Examples of org.apache.qpid.transport.ExecutionException

        _onOpenTask = task;
    }

    public void closeSession(AMQSessionModel session, AMQConstant cause, String message) throws AMQException
    {
        ExecutionException ex = new ExecutionException();
        ExecutionErrorCode code = ExecutionErrorCode.INTERNAL_ERROR;
        try
        {
          code = ExecutionErrorCode.get(cause.getCode());
        }
        catch (IllegalArgumentException iae)
        {
            // Ignore, already set to INTERNAL_ERROR
        }
        ex.setErrorCode(code);
        ex.setDescription(message);
        ((ServerSession)session).invoke(ex);

        ((ServerSession)session).close(cause, message);
    }
View Full Code Here

Examples of org.apache.shiro.subject.ExecutionException

    public <V> V execute(Callable<V> callable) throws ExecutionException {
        Callable<V> associated = associateWith(callable);
        try {
            return associated.call();
        } catch (Throwable t) {
            throw new ExecutionException(t);
        }
    }
View Full Code Here

Examples of org.apache.webbeans.exception.inject.ExecutionException

            return method.invoke(instance);

        }
        catch (Exception e)
        {
            throw new ExecutionException(e);
        }
    }
View Full Code Here

Examples of org.arquillian.spacelift.execution.ExecutionException

    protected File process(File input) throws Exception {
        try {
            ZipFile zipFile = new ZipFile(input);
            zipFile.extractAll(dest.getAbsolutePath());
        } catch (ZipException e) {
            throw new ExecutionException(e, "Unable to unzip {0} to {1}", input, dest);
        }
        return dest;
    }
View Full Code Here

Examples of org.eclipse.core.commands.ExecutionException

  public Object execute(ExecutionEvent event) throws ExecutionException {
    try {
      WorkbenchUtils.openWizardOnCurrentEditorInput(WGADesignerPlugin.getDefault().getWorkbench(), de.innovationgate.eclipse.wgadesigner.ResourceIDs.WIZARD_EXPORT_WGAPLUGIN_TO_REMOTE_SERVER);
      return null;
    } catch (CoreException e) {
      throw new ExecutionException("Unable to open export wizard.", e);
    }
  }
View Full Code Here

Examples of org.eclipse.core.commands.ExecutionException

   
    public static final String PARAM_TMLFilePath = "de.innovationgate.eclipse.ids.commands.OpenModuleInBrowser.paramTMLFilePath";
   
    public Object execute(ExecutionEvent event) throws ExecutionException {
        if (TomcatUtils.getInstance().getCurrentRuntime() == null) {
            throw new ExecutionException("The runtime is not started.");
        }
       
        String param = event.getParameter(PARAM_TMLFilePath);
        if (param != null) {
            Path path = new Path(param);
            IFile tmlFile = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
            String dbkey = OpenModulInBrowser.determineContentStoreOfFile(tmlFile);
            if (dbkey == null) {
                throw new ExecutionException("None of the web applications of the current runtime are connected to this design resource.");
            }
            OpenModulInBrowser.openBrowser(dbkey, tmlFile);
        }
        return null;
    }
View Full Code Here

Examples of org.eclipse.core.commands.ExecutionException

  public Object execute(ExecutionEvent event) throws ExecutionException {
    try {
      WorkbenchUtils.openWizardOnCurrentEditorInput(Plugin.getDefault().getWorkbench(), ResourceIDs.WIZARD_EXPORT_WGA_PLUGIN_LOCAL);
      return null;
    } catch (CoreException e) {
      throw new ExecutionException("Unable to open export wizard.", e);
    }
  }
View Full Code Here

Examples of org.eclipse.core.commands.ExecutionException

  public Object execute(ExecutionEvent event) throws ExecutionException {
    try {
      WorkbenchUtils.openWizardOnCurrentEditorInput(Plugin.getDefault().getWorkbench(), ResourceIDs.WIZARD_EXPORT_WGA_DESIGN_LOCAL);
      return null;
    } catch (CoreException e) {
      throw new ExecutionException("Unable to open export wizard.", e);
    }
  }
View Full Code Here

Examples of org.eclipse.core.commands.ExecutionException

        {
            IEditorInput editorInput = editorPart.getEditorInput();

            if (!(editorInput instanceof IFileEditorInput))
            {
                throw new ExecutionException("Editor input must be a file");
            }
            IFileEditorInput fileInput = (IFileEditorInput) editorInput;

            try
            {
                // Save the editor content (if dirty)
                IRunnableWithProgress saveOperation = new IRunnableWithProgress()
                {
                    public void run(IProgressMonitor monitor)
                        throws InvocationTargetException, InterruptedException
                    {
                        if (editorPart.isDirty())
                        {
                            if (MessageDialog.openQuestion(
                                shell,
                                "Save File",
                                "The file contents must be saved before the command can be executed. Do you wish to save now?"))
                            {
                                editorPart.doSave(monitor);
                            }
                            else
                            {
                                throw new InterruptedException();
                            }
                        }
                    }
                };
                new ProgressMonitorDialog(shell).run(false, true, saveOperation);

                // Execute on the file
                IFile file = fileInput.getFile();
                getResourceCommandHandler().execute(new IResource[] { file }, event);
            }
            catch (InvocationTargetException e)
            {
                throw new ExecutionException("Error saving file", e.getTargetException());
            }
            catch (InterruptedException e)
            {
                // Exit the command silently
            }
View Full Code Here

Examples of org.eclipse.ui.commands.ExecutionException

    try {
      return command.execute(new ExecutionEvent(command,
          (parameterValuesByName == null) ? Collections.EMPTY_MAP
              : parameterValuesByName, null, null));
    } catch (final org.eclipse.core.commands.ExecutionException e) {
      throw new ExecutionException(e);
    } catch (final org.eclipse.core.commands.NotHandledException e) {
      throw new NotHandledException(e);
    }
  }
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.