An implementation must wrap any {@link Exception} thrown by an{@link EntryProcessor} in this exception. @author Greg Luck @since 1.0
1016101710181019102010211022102310241025
} catch (EntryProcessorException e) { throw e; } catch (CacheException e) { throw e; } catch (Exception e) { throw new EntryProcessorException(e); } finally { releaseProcessorLock(key); } }
37383940414243
static RuntimeException launderEntryProcessorException(Exception e) { if (e instanceof CacheException) return (CacheException) e; return new EntryProcessorException(e); }
44454647484950
public T get() throws EntryProcessorException { if (result != null) { return result; } throw new EntryProcessorException(exception); }
241242243244245246247248
} catch (CacheException ce) { deregisterCompletionLatch(completionId); throw ce; } catch (Exception e) { deregisterCompletionLatch(completionId); throw new EntryProcessorException(e); } }
243244245246247248249250
final Data data = getSafely(f); return toObject(data); } catch (CacheException ce) { throw ce; } catch (Exception e) { throw new EntryProcessorException(e); } }
661662663664665666667668669670671
entry.apply(this); } catch (RuntimeException t) { if(t instanceof CacheException) { throw t; } throw new EntryProcessorException(t); } } finally { ehcache.releaseWriteLockOnKey(key); } return outcome;
851852853854855856857858859860
} @Override public void setValue(final V value) { if(value == null) { throw new EntryProcessorException(); } deleted = false; newValue = value; }