/** * Called after all Receivers have been executed. */ protected void finish() { if (toThrow != null) { // Reset if the user wants to re-fire the Request Set<Throwable> causes = toThrow; toThrow = null; throw new UmbrellaException(causes); } }
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
/** * Called after all Receivers have been executed. */ protected void finish() { if (toThrow != null) { // Reset if the user wants to re-fire the Request Set<Throwable> causes = toThrow; toThrow = null; throw new UmbrellaException(causes); } }
/** * Called after all Receivers have been executed. */ protected void finish() { if (toThrow != null) { // Reset if the user wants to re-fire the Request Set<Throwable> causes = toThrow; toThrow = null; throw new UmbrellaException(causes); } }
/** * Called after all Receivers have been executed. */ protected void finish() { if (toThrow != null) { // Reset if the user wants to re-fire the Request Set<Throwable> causes = toThrow; toThrow = null; throw new UmbrellaException(causes); } }
protected void fireChange(Action action) { List<HandlerRef> allHandler = new ArrayList<>(); allHandler.addAll(handler); allHandler.addAll(handlerByType.get(action.getClass())); allHandler.addAll(handlerByInstance.get(action)); Set<Throwable> causes = null; for (HandlerRef handlerRef : allHandler) { try { handlerRef.handler.onChange(action); } catch (Throwable e) { if (causes == null) { causes = new HashSet<>(); } causes.add(e); } } if (causes != null) { throw new UmbrellaException(causes); } } }
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);
throw new UmbrellaException(causes);