Package org.eurekastreams.commons.exceptions

Examples of org.eurekastreams.commons.exceptions.ExecutionException


                    new PostSplitActivityAndCommentsRequest(EntityType.GROUP,
                            tokenData.get(TokenContentFormatter.META_KEY_GROUP_STREAM), content));
        }
        else
        {
            throw new ExecutionException("Cannot determine action to execute.");
        }
    }
View Full Code Here


            tokenDeleteMapper.execute(new OAuthTokenRequest(consumer, securityToken.getViewerId(), securityToken
                    .getOwnerId()));
        }
        else
        {
            throw new ExecutionException("OAuth Consumer was not found.");
        }

        return null;
    }
View Full Code Here

                {
                    b.append(entry.getKey() + ":" + entry.getValue() + " ");
                }
                log.error(b.toString());
            }
            throw new ExecutionException(e);
        }
    }
View Full Code Here

        {
            avatarEntity = finder.findEntity(inActionContext.getActionContext().getPrincipal(), entityId);
        }
        catch (Exception e)
        {
            throw new ExecutionException(e);
        }

        String avatarId = avatarEntity.getAvatarId();

        if (avatarId != null)
View Full Code Here

        {
            avatarEntity = finder.findEntity(inActionContext.getActionContext().getPrincipal(), request.getEntityId());
        }
        catch (Exception e1)
        {
            throw new ExecutionException(e1);
        }

        String avatarId = avatarEntity.getAvatarId();

        if (refreshFiles)
View Full Code Here

        if (pos >= 0)
        {
            int endPos = targetType.lastIndexOf(']');
            if (endPos < pos)
            {
                throw new ExecutionException("Mismatched brackets in type name.");
            }
            String listType = targetType.substring(0, pos);
            String elementType = targetType.substring(pos + 1, endPos);

            // Unimplemented feature: if listType is an empty string, then handle it as an array

            Class listClass = Class.forName(listType);
            if (!Collection.class.isAssignableFrom(listClass))
            {
                throw new ExecutionException("List class '" + listType + "' must implement Collection.");
            }
            Collection list;
            try
            {
                list = (Collection) listClass.getConstructor().newInstance();
            }
            catch (Exception ex)
            {
                throw new ExecutionException("Cannot instantiate list class '" + listType + "'.");
            }

            fillList(jsonContainer.getJSONArray(fieldName), list, elementType);
            return list;
        }
View Full Code Here

            return (ex.getCause() == null) ? ex : new GeneralException(ex.getMessage());
        }
        else if (ex instanceof ExecutionException)
        {
            // Remove any nested exceptions
            return (ex.getCause() == null) ? ex : new ExecutionException(ex.getMessage());
        }
        else if (ex instanceof InvalidActionException)
        {
            return new GeneralException("Invalid action.");
        }
View Full Code Here

            {
                oneOf(transactionManager).getTransaction(with(any(DefaultTransactionDefinition.class)));
                will(returnValue(transaction));

                oneOf(dao).execute(with(same(request)));
                will(throwException(new ExecutionException("BAD")));

                oneOf(transactionManager).rollback(with(same(transaction)));
            }
        });
        sut.execute(request);
View Full Code Here

            break;
        case GROUP:
            deleteKey = GroupAvatarModel.getInstance();
            break;
        default:
            throw new ExecutionException("Entity type key invalid.");
        }

        Session.getInstance().getEventBus().addObservers(new Observer()
        {
            public void update(final Object arg1)
View Full Code Here

            }
        }
        catch (Exception ex)
        {
            log.error("Error occurred deleting app data.", ex);
            throw new ExecutionException("Error occurred deleting app data.", ex);
        }
        return null;
    }
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.