Package org.vertx.java.core

Examples of org.vertx.java.core.VertxException


        @Override
        public void handle(AsyncResult<Boolean> result) {
          if (result.failed()) {
            new DefaultFutureResult<Void>(result.cause()).setHandler(doneHandler);
          } else if (!result.result()) {
            new DefaultFutureResult<Void>(new VertxException("File not found.")).setHandler(doneHandler);
          } else {
            // In order to send a file, we need to create a new output group.
            // The group will guarantee that all messages within it go to the
            // same target component instances. And since messages are guaranteed
            // to be ordered, we can stream the file to the appropriate out port.
View Full Code Here


    try {
      try (Scanner scanner = new Scanner(url.openStream(), "UTF-8").useDelimiter("\\A")) {
        String json = scanner.next();
        return new JsonObject(json);
      } catch (NoSuchElementException e) {
        throw new VertxException("Empty network configuration file.");
      } catch (DecodeException e) {
        throw new VertxException("Invalid network configuration file.");
      }
    } catch (IOException e) {
      throw new VertxException("Failed to read network configuration file.");
    }
  }
View Full Code Here

                    rackScript += "Jubilee::Application.new(app)\n";
                    svert.append(rackScript);
                    svert.append("end");
                    rackApplication = (IRubyObject)scontainer.runScriptlet(new StringReader(svert.toString()), rackup);
                } catch (Exception e) {
                    throw new VertxException(e);
                }
            }
            httpServer = vertx.createHttpServer();

            final RackApplication app;
View Full Code Here

TOP

Related Classes of org.vertx.java.core.VertxException

Copyright © 2018 www.massapicom. 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.