Package com.fathomdb.cli

Examples of com.fathomdb.cli.CliException


      try {
        String json = jsonHelper.marshal(jobs, formatted);
        writer.println(json);
        return;
      } catch (IOException e) {
        throw new CliException("Error formatting for output", e);
      }
    }

    Ansi ansi = new Ansi(writer);
View Full Code Here


      try {
        String json = jsonHelper.marshal(jobs, formatted);
        writer.println(json);
        return;
      } catch (IOException e) {
        throw new CliException("Error formatting for output", e);
      }
    }

    Ansi ansi = new Ansi(writer);
View Full Code Here

      } catch (IOException e) {
        throw new IOException("Error reading configuration file", e);
      }

      if (properties.getProperty("platformlayer.username") == null) {
        throw new CliException("User property not set in configuration file");
      }

      if (debug) {
        client = buildPlatformLayerClient(properties, debug);
      } else {
        String propertiesKey = PropertyUtils.serialize(properties);

        try {
          client = platformLayerClientCache.get(propertiesKey, new Callable<HttpPlatformLayerClient>() {
            @Override
            public HttpPlatformLayerClient call() throws Exception {
              return buildPlatformLayerClient(properties, false);
            }
          });
        } catch (ExecutionException e) {
          throw new CliException("Error building platformlayer client", e);
        }
      }
    } finally {
      if (is != System.in) {
        Closeables.closeQuietly(is);
View Full Code Here

TOP

Related Classes of com.fathomdb.cli.CliException

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.