Examples of StopException


Examples of freemarker.core.StopException

        this.message = message;
    }

    public void execute(Environment env) throws TemplateException {
        if (message == null) {
            throw new StopException(env);
        }
        throw new StopException(env, message.getStringValue(env));
    }
View Full Code Here

Examples of freemarker.core.StopException

        {
            nestedBlock.execute(env);
        }
        else
        {
            throw new StopException(env, "Stopped by debugger");       
        }
    }
View Full Code Here

Examples of org.apache.jsieve.exception.StopException

     *      Arguments, Block, SieveContext)
     *      </p>
     */
    protected Object executeBasic(MailAdapter mail, Arguments arguments,
            Block block, SieveContext context) throws SieveException {
        throw new StopException("Stop requested");
    }
View Full Code Here

Examples of org.geotools.xml.gml.FCBuffer.StopException

            }

            if (featureCollectionBuffer.state <= 0) {
                switch (featureCollectionBuffer.state) {
                case FCBuffer.STOP:
                    throw new StopException(); // alternative to stop()

                case FCBuffer.FINISH:
                    return;

                default:
                    featureCollectionBuffer.state = (featureCollectionBuffer
                        .getCapacity() - featureCollectionBuffer.getSize()) / 3;
                    logger.finest("New State " + featureCollectionBuffer.state
                        + " " + featureCollectionBuffer.getSize());

                    while (featureCollectionBuffer.getSize() > (featureCollectionBuffer
                            .getCapacity() - 1)) {
                        logger.finest("waiting for reader");
                        synchronized (featureCollectionBuffer) {
                            try {
                                featureCollectionBuffer.wait(100);
                            } catch (InterruptedException e) {
                                throw new StopException()// alternative to stop()
                            }
                        }
//                        Thread.yield();
                        if(featureCollectionBuffer.state == FCBuffer.STOP)
                          throw new StopException(); // alternative to stop()
                    }
                }
            } else {
                featureCollectionBuffer.state--;
                logger.finest("New State " + featureCollectionBuffer.state
View Full Code Here

Examples of org.geotools.xml.gml.FCBuffer.StopException

   
    private void checkStatus() throws StopException {
    if (this.hints != null && hints.get(XMLHandlerHints.FLOW_HANDLER_HINT) != null) {
      FlowHandler handler = (FlowHandler) hints.get(XMLHandlerHints.FLOW_HANDLER_HINT);
      if (handler.shouldStop(hints)) {
        throw new StopException();
      }
    }
   
    if (Thread.currentThread().isInterrupted()) {
      throw new StopException();
    }
  }
View Full Code Here

Examples of org.mule.api.lifecycle.StopException

                consumer.setMessageListener(null);
            }
        }
        catch (JMSException e)
        {
            throw new StopException(e, this);
        }
    }
View Full Code Here

Examples of org.mule.api.lifecycle.StopException

            {
                connection.stop();
            }
            catch (JMSException e)
            {
                throw new StopException(CoreMessages.failedToStop("Jms Connection"), e, this);
            }
        }

        if (jndiNameResolver != null)
        {
View Full Code Here

Examples of org.mule.api.lifecycle.StopException

    public void stop() throws MuleException {
        try {
            server.stop();
        } catch (Exception e) {
            throw new StopException(e,this);
        }
    }
View Full Code Here

Examples of org.mule.api.lifecycle.StopException

     */
    public void stop() throws StopException {
        try {
            server.stop();
        } catch (Exception e) {
            throw new StopException(e, parent);
        }
    }
View Full Code Here

Examples of org.mule.api.lifecycle.StopException

     */
    public void stop() throws StopException {
        try {
            server.stop();
        } catch (Exception e) {
            throw new StopException(e, parent);
        }
    }
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.