Package org.eurekastreams.commons.exceptions

Examples of org.eurekastreams.commons.exceptions.ExecutionException


        }
        catch (MessagingException ex)
        {
            String msg = "Failed to send email message for notification " + request.getDescription();
            log.error(msg, ex);
            throw new ExecutionException(msg, ex);
        }

        return null;
    }
View Full Code Here


                    .getEntityId()));
        }
        catch (Exception ex)
        {
            log.error("Error running SaveBannerAction", ex);
            throw new ExecutionException("Error occurred saving the supplied banner", ex);
        }

        return null;
    }
View Full Code Here

    {
        if (indexInProgress)
        {
            // another thread is indexing, leave now
            log.error("User attempted to kick off a reindexing of the search engine while it's already in progress.");
            throw new ExecutionException("Cannot perform a reindexing right now - it's already in progress.");
        }

        // the indexing is not in progress - get a lock then start indexing
        synchronized (indexInProgress)
        {
            // now that we have the lock - make sure it wasn't kicked off by
            // another thread while we waited
            if (indexInProgress)
            {
                log.error("User attempted to kick off a reindexing of the search engine while it's "
                        + "already in progress.  The other thread started while this one waited for the lock");
                throw new ExecutionException("Cannot perform a reindexing right now - "
                        + "it's already in progress, kicked off while we waited for the lock.");
            }
            indexInProgress = true;
        }
View Full Code Here

            }
            return newEntity;
        }
        catch (Exception ex)
        {
            throw new ExecutionException(ex);
        }
    }
View Full Code Here

            new URL(feedUrlText);
        }
        catch (MalformedURLException e)
        {
            logger.error("Error fetching feed");
            throw new ExecutionException(e);
        }

        // fetch the feeds; use the first result since there should be exactly one
        SyndFeed syndFeed;
        try
        {
            Map<String, SyndFeed> synFeeds =
                    feedFetcherFactory.getSyndicatedFeed(feedUrlText, Collections.singletonList(inActionContext
                            .getPrincipal().getAccountId()));
            syndFeed = synFeeds.values().iterator().next();
        }
        catch (Exception e)
        {
            throw new ExecutionException(e);
        }

        // validate the feed
        for (Object entryObject : syndFeed.getEntries())
        {
View Full Code Here

            // Do not remove the last Group Coordinator.
            if ((domainGroupMapper.getGroupCoordinatorCount(targetId) == 1) && isToBeRemovedUserGroupCoordinator)
            {
                log.error("Cannot remove followerId: " + followerId + " " + "from targetId:" + targetId
                        + " since there's " + "only a single Group Coordinator remaining " + "in the Group");
                throw new ExecutionException("Cannot remove followerId: " + followerId + " " + "from targetId:"
                        + targetId + " since there's " + "only a single Group Coordinator remaining " + "in the Group");
            }

            // Update the db for list of followers and following.
            domainGroupMapper.removeFollower(followerId, targetId);
View Full Code Here

        if (template.getReplyAddressType() == ReplyAction.COMMENT)
        {
            Object obj = inProperties.get("activity");
            if (obj == null || !(obj instanceof ActivityDTO))
            {
                throw new ExecutionException("Notification requires activity property for building token.");
            }
            ActivityDTO activity = (ActivityDTO) obj;

            addressesWithTokens = new HashMap<String, String>(inRecipients.size());
            String tokenData = tokenContentFormatter.buildForActivity(activity.getId());
View Full Code Here

            return bannerObject;
        }
        catch (Exception ex)
        {
            log.error("Error deleting banner.", ex);
            throw new ExecutionException("Error deleting banner.", ex);
        }
    }
View Full Code Here

                new InlineExecutionStrategyExecutor().execute(deleteGroupExecution, groupId, inActionContext);
            }
        }
        catch (Exception e)
        {
            throw new ExecutionException(e);
        }

        return true;
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.commons.exceptions.ExecutionException

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.