List of usage examples for com.google.common.util.concurrent UncheckedExecutionException printStackTrace
public void printStackTrace()
From source file:c5db.ClusterOrPseudoCluster.java
@AfterClass public static void afterClass() throws Exception { if (dirty) {// w ww. j a v a 2 s . com for (C5Module module : server.getModules().values()) { try { module.stop().get(1, TimeUnit.SECONDS); } catch (UncheckedExecutionException e) { e.printStackTrace(); } } server.stop().get(1, TimeUnit.SECONDS); Log.warn("We left it dirty"); } }
From source file:com.netflix.spinnaker.kork.astyanax.DefaultAstyanaxKeyspaceFactory.java
@Override public Keyspace getKeyspace(final String clusterName, final String keyspaceName) throws ConnectionException { try {/*w w w . j a v a2 s.c o m*/ return keyspaces.get(new KeyspaceKey(clusterName, keyspaceName)).getClient(); } catch (ExecutionException ex) { if (ex.getCause() instanceof ConnectionException) { throw (ConnectionException) ex.getCause(); } throw new UnknownException(ex.getCause()); } catch (UncheckedExecutionException uee) { uee.printStackTrace(); throw uee; } }
From source file:org.restexpress.plugin.content.adapter.CachedContextAdapter.java
@Override public File retrieve(final String name) throws IOException { File result = null;//from w ww. j a va 2s . co m if (name != null) try { final Optional<File> value = fileCache.get(name); if (value.isPresent()) { result = value.get(); // file from cache has be removed by hand if (result != null && !result.exists()) { fileCache.invalidate(name); result = null; } } } catch (final UncheckedExecutionException u) { log.error(u.getMessage()); u.printStackTrace(); } catch (final ExecutionException e) { log.error(e.getMessage()); } return result; }