Examples of TaskExecutionException


Examples of org.gradle.api.tasks.TaskExecutionException

        }});

        executer.execute(task, state);

        assertThat(wrappedFailure.get(), instanceOf(TaskExecutionException.class));
        TaskExecutionException exception = (TaskExecutionException) wrappedFailure.get();
        assertThat(exception.getTask(), equalTo((Task) task));
        assertThat(exception.getMessage(), equalTo("Execution failed for <task>."));
        assertThat(exception.getCause(), sameInstance(failure));
    }
View Full Code Here

Examples of org.gradle.api.tasks.TaskExecutionException

            }
        }

        if (source == null) {
            if (actualException instanceof TaskExecutionException) {
                TaskExecutionException taskExecutionException = (TaskExecutionException) actualException;
                source = ((ProjectInternal) taskExecutionException.getTask().getProject()).getBuildScriptSource();
            }
        }

        return generator.newInstance(actualException.getClass(), actualException, source, lineNumber);
    }
View Full Code Here

Examples of org.grouplens.lenskit.eval.TaskExecutionException

                throw closer.rethrow(th);
            } finally {
                closer.close();
            }
        } catch (IOException e) {
            throw new TaskExecutionException("Error writing output file", e);
        }
        return makeDataSource();
    }
View Full Code Here

Examples of org.jscsi.exception.TaskExecutionException

            return returnVal;
        } else {
            try {
                task.call();
            } catch (final Exception exc) {
                throw new TaskExecutionException(new ExecutionException(exc));
            }
            return null;
        }
        // LOGGER.info("Added a " + task + " to the TaskQueue");
    }
View Full Code Here

Examples of org.jscsi.exception.TaskExecutionException

     */
    public final void read (final String targetName, final ByteBuffer dst, final int logicalBlockAddress, final long transferLength) throws NoSuchSessionException , TaskExecutionException {
        try {
            multiThreadedRead(targetName, dst, logicalBlockAddress, transferLength).get();
        } catch (final InterruptedException exc) {
            throw new TaskExecutionException(exc);
        } catch (final ExecutionException exc) {
            throw new TaskExecutionException(exc);
        }
    }
View Full Code Here

Examples of org.jscsi.exception.TaskExecutionException

    public final void write (final String targetName, final ByteBuffer src, final int logicalBlockAddress, final long transferLength) throws NoSuchSessionException , TaskExecutionException {

        try {
            multiThreadedWrite(targetName, src, logicalBlockAddress, transferLength).get();
        } catch (final InterruptedException exc) {
            throw new TaskExecutionException(exc);
        } catch (final ExecutionException exc) {
            throw new TaskExecutionException(exc);
        }
    }
View Full Code Here

Examples of pivot.util.concurrent.TaskExecutionException

                String username = usernameTextInput.getText();
                String password = passwordTextInput.getText();
                xmppConnection.connect();
                xmppConnection.login(username, password);
            } catch(XMPPException exception) {
                throw new TaskExecutionException(exception);
            }

            return null;
        }
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.