Package com.google.common.util.concurrent

Examples of com.google.common.util.concurrent.UncheckedExecutionException


    @Override
    public V getUnchecked(K key) {
      try {
        return get(key);
      } catch (ExecutionException e) {
        throw new UncheckedExecutionException(e.getCause());
      }
    }
View Full Code Here


    @Override
    public V getUnchecked(K key) {
        try {
            return get(key);
        } catch (ExecutionException e) {
            throw new UncheckedExecutionException(e);
        }
    }
View Full Code Here

      throw e;
    } catch (InterruptedException e) {
      Thread.currentThread().interrupt();
      throw new ExecutionException(e);
    } catch (RuntimeException e) {
      throw new UncheckedExecutionException(e);
    } catch (Exception e) {
      throw new ExecutionException(e);
    } catch (Error e) {
      throw new ExecutionError(e);
    } finally {
View Full Code Here

    @Override
    public V getUnchecked(K key) {
      try {
        return get(key);
      } catch (ExecutionException e) {
        throw new UncheckedExecutionException(e.getCause());
      }
    }
View Full Code Here

      } catch (ExecutionException ee) {
        Throwable cause = ee.getCause();
        if (cause instanceof Error) {
          throw new ExecutionError((Error) cause);
        } else if (cause instanceof RuntimeException) {
          throw new UncheckedExecutionException(cause);
        }
        throw ee;
      } finally {
        postReadCleanup();
      }
View Full Code Here

    {
      return get(paramObject);
    }
    catch (ExecutionException localExecutionException)
    {
      throw new UncheckedExecutionException(localExecutionException.getCause());
    }
  }
View Full Code Here

      {
        Throwable localThrowable = localExecutionException.getCause();
        if ((localThrowable instanceof Error))
          throw new ExecutionError((Error)localThrowable);
        if ((localThrowable instanceof RuntimeException))
          throw new UncheckedExecutionException(localThrowable);
        throw localExecutionException;
      }
      finally
      {
        postReadCleanup();
View Full Code Here

      Thread.currentThread().interrupt();
      throw new ExecutionException(localInterruptedException);
    }
    catch (RuntimeException localRuntimeException)
    {
      throw new UncheckedExecutionException(localRuntimeException);
    }
    catch (Exception localException)
    {
      throw new ExecutionException(localException);
    }
View Full Code Here

      {
        return get(paramObject);
      }
      catch (ExecutionException localExecutionException)
      {
        throw new UncheckedExecutionException(localExecutionException.getCause());
      }
    }
View Full Code Here

      boolean completed = jobComplete.apply(job.getJobId());
      logger.trace("<< job(%s) complete(%s)", job, completed);
      AsyncJob<T> jobWithResult = client.getAsyncJobApi().<T> getAsyncJob(job.getJobId());
      checkState(completed, "job %s failed to complete in time %s", job.getJobId(), jobWithResult);
      if (jobWithResult.getError() != null)
         throw new UncheckedExecutionException(String.format("job %s failed with exception %s", job.getJobId(),
               jobWithResult.getError().toString())) {
         };
      return jobWithResult.getResult();
   }
View Full Code Here

TOP

Related Classes of com.google.common.util.concurrent.UncheckedExecutionException

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.