Examples of AbortedException


Examples of com.amazonaws.AbortedException

     * @throws AbortedException if found necessary.
     */
    protected final void abortIfNeeded() {
        if (shouldAbort()) {
            abort();    // execute subclass specific abortion logic
            throw new AbortedException();
        }
    }
View Full Code Here

Examples of com.amazonaws.AbortedException

            try {
                abort();    // execute subclass specific abortion logic
            } catch (IOException e) {
                LogFactory.getLog(getClass()).debug("FYI", e);
            }
            throw new AbortedException();
        }
    }
View Full Code Here

Examples of com.amazonaws.AbortedException

     * @throws AbortedException if found necessary.
     */
    protected final void abortIfNeeded() {
        if (shouldAbort()) {
            abort();    // execute subclass specific abortion logic
            throw new AbortedException();
        }
    }
View Full Code Here

Examples of org.apache.servicemix.nmr.api.AbortedException

            for (ExchangeListener l : nmr.getListenerRegistry().getListeners(ExchangeListener.class)) {
                l.exchangeFailed(exchange);
            }
            return false;
        } catch (TimeoutException ex) {
            exchange.setError(new AbortedException(ex));
            for (ExchangeListener l : nmr.getListenerRegistry().getListeners(ExchangeListener.class)) {
                l.exchangeFailed(exchange);
            }
            return false;
        } finally {
View Full Code Here

Examples of org.apache.servicemix.nmr.api.AbortedException

        } catch (InterruptedException ex) {
            exchange.setError(ex);
            exchange.setStatus(Status.Error);
            return false;
        } catch (TimeoutException ex) {
            exchange.setError(new AbortedException(ex));
            exchange.setStatus(Status.Error);
            return false;
        }
        return true;
    }
View Full Code Here

Examples of org.apache.servicemix.nmr.api.AbortedException

        } catch (InterruptedException ex) {
            exchange.setError(ex);
            exchange.setStatus(Status.Error);
            return false;
        } catch (TimeoutException ex) {
            exchange.setError(new AbortedException(ex));
            exchange.setStatus(Status.Error);
            return false;
        }
        return true;
    }
View Full Code Here

Examples of org.jboss.forge.shell.exceptions.AbortedException

            }
            buildDir = checkoutDir.reify(DirectoryResource.class);
            if (!shell.promptBoolean("Directory " + buildDir.getFullyQualifiedName()
                     + " already exists. Do you want to overwrite?", false))
            {
               throw new AbortedException("Directory " + buildDir.getFullyQualifiedName()
                        + " already exists");
            }
            buildDir.delete(true);
            buildDir.mkdirs();
         }
View Full Code Here

Examples of org.jboss.forge.shell.exceptions.AbortedException

            }
            buildDir = checkoutDir.reify(DirectoryResource.class);
            if (!shell.promptBoolean("Directory " + buildDir.getFullyQualifiedName()
                     + " already exists. Do you want to overwrite?", false))
            {
               throw new AbortedException("Directory " + buildDir.getFullyQualifiedName()
                        + " already exists");
            }
            buildDir.delete(true);
            buildDir.mkdirs();
         }
View Full Code Here

Examples of org.jboss.forge.shell.exceptions.AbortedException

            thread.run();
            thread.join();

            if (interruptedState)
            {
               throw new AbortedException();
            }

            flush();
            if (thread.getException() instanceof EndOfStreamException)
            {
View Full Code Here

Examples of org.jboss.forge.shell.exceptions.AbortedException

            thread.run();
            thread.join();

            if (interruptedState)
            {
               throw new AbortedException();
            }

            flush();
            if (thread.getException() instanceof EndOfStreamException)
            {
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.