Package org.eurekastreams.commons.exceptions

Examples of org.eurekastreams.commons.exceptions.ExecutionException


            return tabMapper.undeleteGadget(gadgetId);
        }
        catch (GadgetUndeletionException gue)
        {
            throw new ExecutionException("Error occurred undeleting gadget.", gue);
        }
    }
View Full Code Here


            success = true;
        }
        catch (Exception ex)
        {
            logger.error("Error occurred deleting tab.", ex);
            throw new ExecutionException("Error occurred deleting tab.", ex);
        }
        return success;
    }
View Full Code Here

        Gadget gadget = gadgetMapper.findById(currentRequest.getGadgetId());

        if (null == gadget)
        {
            throw new ExecutionException("Failed to set minimized state for gadget. Gadget id "
                    + currentRequest.getGadgetId() + " not found");
        }

        gadget.setMinimized(currentRequest.isMinimized());
        gadget.setMaximized(currentRequest.isMaximized());
View Full Code Here

            }
        }
        catch (Exception ex)
        {
            log.error("An error occurred authorizing the OAuth token.", ex);
            throw new ExecutionException(ex);
        }

        OAuthDomainEntry currentEntry = entryMapper.execute(tokenEntry.getToken());
        log.trace("Authorization for user: " + accountId + " complete.");
        String callbackUrl = "";
        if (currentEntry.getCallbackUrl() != null && currentEntry.getCallbackUrl().length() > 0)
        {
            try
            {
                callbackUrl = OAuth.addParameters(currentEntry.getCallbackUrl(), "oauth_verifier", currentEntry
                        .getCallbackToken());
                callbackUrl = OAuth.addParameters(callbackUrl, OAuth.OAUTH_TOKEN, currentEntry.getToken());
            }
            catch (IOException ioe)
            {
                log.error("An IO exception has occured.", ioe);
                throw new ExecutionException(ioe);
            }
        }
        log.debug("return the callback url with the oauth_token added " + callbackUrl);
        return callbackUrl;
    }
View Full Code Here

        int targetIndex = findTargetIndex(gadgets, gadgetId);

        if (targetIndex == INVALID_INDEX)
        {
            throw new ExecutionException("Gadget could not be deleted because gadget Id " //
                    + gadgetId + " was not found");
        }

        try
        {
            tabMapper.deleteGadget(gadgets.get(targetIndex));
        }
        catch (GadgetDeletionException e)
        {
            throw new ExecutionException("Error occurred deleting gadget.", e);
        }

        tabMapper.flush();

        deleteKeysMapper.execute(Collections.singleton(CacheKeys.PERSON_PAGE_PROPERTIES_BY_ID
View Full Code Here

        OAuthConsumer consumer = consumerMapper.execute(new OAuthConsumerRequest(request.getServiceName(),
                securityToken.getAppUrl()));
        if (consumer == null)
        {
            throw new ExecutionException("OAuth Consumer was not found");
        }
        OAuthToken token = tokenMapper.execute(new OAuthTokenRequest(consumer, securityToken.getViewerId(),
                securityToken.getOwnerId()));
        if (token != null)
        {
View Full Code Here

                    + inActionContext.getPrincipal().getId()));
            return tabGroupMapper.undeleteTab(tabId);
        }
        catch (TabUndeletionException tue)
        {
            throw new ExecutionException(tue);
        }
    }
View Full Code Here

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

            return tabMapper.findById(targetTabId);
        }
        catch (Exception ex)
        {
            throw new ExecutionException("Error occurred moving gadget.", ex);
        }
    }
View Full Code Here

            paramsJSON = paramsJSON.replace("<BSLASH>", "\\");
        }
        catch (UnsupportedEncodingException ex)
        {
            log.error("Error initializing parameters from restlet.", ex);
            throw new ExecutionException(ex);
        }
    }
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.