Examples of ExecutionError


Examples of au.com.ds.ef.err.ExecutionError

                    log.debug("when final state {} for {} >>>", state, context);
            }

            callOnTerminate(context);
        } catch (Exception e) {
            callOnError(new ExecutionError(state, null, e,
                "Execution Error in [EasyFlow.whenFinalState] handler", context));
        }
    }
View Full Code Here

Examples of au.com.ds.ef.err.ExecutionError

                        callOnTriggered(context, stateFrom, stateTo);
                        runner.callOnEventTriggered(Event.this, stateFrom, stateTo, context);
                        runner.setCurrentState(stateTo, context);
                    }
        } catch (Exception e) {
          runner.callOnError(new ExecutionError(stateFrom, Event.this, e,
              "Execution Error in [Event.trigger]", context));         
        }
      }
    });
  }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.guava.util.concurrent.ExecutionError

    } catch (RuntimeException e) {
      throw new UncheckedExecutionException(e);
    } catch (Exception e) {
      throw new ExecutionException(e);
    } catch (Error e) {
      throw new ExecutionError(e);
    } finally {
      if (!success) {
        globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS));
      }
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.guava.util.concurrent.ExecutionError

        // at this point e is either null or expired;
        return lockedGetOrLoad(key, hash, loader);
      } 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 {
View Full Code Here

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

      this.e = e;
    }

    @Override
    public V get() {
      throw new ExecutionError(e);
    }
View Full Code Here

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

      try {
        return loader.load(key);
      } catch (Exception e) {
        throw new UncheckedExecutionException(e);
      } catch (Error e) {
        throw new ExecutionError(e);
      }
    }
View Full Code Here

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

        statsCounter.recordCreateException(end - start);
        throw new ExecutionException(e);
      } catch (Error e) {
        long end = System.nanoTime();
        statsCounter.recordCreateException(end - start);
        throw new ExecutionError(e);
      } finally {
        statsCounter.recordEviction();
      }
    }
View Full Code Here

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

      } catch (RuntimeException e) {
        throw new UncheckedExecutionException(e);
      } catch (Exception e) {
        throw new ExecutionException(e);
      } catch (Error e) {
        throw new ExecutionError(e);
      }

      if (value == null) {
        String message = loader + " returned null for key " + key + ".";
        throw new InvalidCacheLoadException(message);
View Full Code Here

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

    } catch (RuntimeException e) {
      throw new UncheckedExecutionException(e);
    } catch (Exception e) {
      throw new ExecutionException(e);
    } catch (Error e) {
      throw new ExecutionError(e);
    } finally {
      if (!success) {
        globalStatsCounter.recordLoadException(stopwatch.elapsed(NANOSECONDS));
      }
    }
View Full Code Here

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

        // at this point e is either null or expired;
        return lockedGetOrLoad(key, hash, loader);
      } 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 {
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.