Examples of NotFoundException


Examples of mungbean.NotFoundException

    }

    private GridFsFile findFile(String fileName) {
        List<GridFsFile> files = fileCollection.query(new Query().field("filename").is(fileName));
        if (files.isEmpty()) {
            throw new NotFoundException("File not found: " + fileName);
        }
        return files.get(0);
    }
View Full Code Here

Examples of net.fortytwo.twitlogic.services.twitter.errors.NotFoundException

                    case 401:
                        throw new UnauthorizedException();
                    case 403:
                        throw new ForbiddenException();
                    case 404:
                        throw new NotFoundException();
                    case 406:
                        showRequestInfo(request);
                        throw new NotAcceptableException();
                    case 420:
                        throw new EnhanceYourCalmException();
View Full Code Here

Examples of net.sf.chellow.monad.NotFoundException

  public UriPathElement getUriId() throws HttpException {
    return new UriPathElement(Long.toString(id));
  }

  public Urlable getChild(UriPathElement urlId) throws HttpException {
    throw new NotFoundException();
  }
View Full Code Here

Examples of org.acegisecurity.acls.NotFoundException

        Long ownerSid = createOrRetrieveSidPrimaryKey(acl.getOwner(), true);
        int count = jdbcTemplate.update(updateObjectIdentity,
                new Object[] {parentId, ownerSid, new Boolean(acl.isEntriesInheriting()), acl.getId()});

        if (count != 1) {
            throw new NotFoundException("Unable to locate ACL to update");
        }
    }
View Full Code Here

Examples of org.apache.cassandra.thrift.NotFoundException

   * @return the Column that was requested if it exists.
   * @throws NotFoundException if the result doesn't exist (including if the value holds a tumbstone)
   */
    public static  IColumn validateAndGetColumn(List<Row> rows, ByteBuffer columnName) throws NotFoundException {
        if(rows.isEmpty())
            throw new NotFoundException();

        if(rows.size() > 1)
            throw new RuntimeException("Block id returned more than one row");

        Row row = rows.get(0);
        if(row.cf == null)
            throw new NotFoundException();

        IColumn col = row.cf.getColumn(columnName);

        if(col == null || !col.isLive())
            throw new NotFoundException();

        return col;
    }
View Full Code Here

Examples of org.apache.cxf.aegis.inheritance.ws2.common.exception.NotFoundException

    }

    public synchronized ParentBean getParentBean(String id) throws NotFoundException {
        ParentBean result = map.get(id);
        if (result == null) {
            throw new NotFoundException(id);
        }

        return result;
    }
View Full Code Here

Examples of org.apache.geronimo.gshell.layout.NotFoundException

  public Node findNode(Node start, String path) throws NotFoundException {
        assert start != null;
        assert path != null;

        if (!(start instanceof GroupNode)) {
          throw new NotFoundException(path);
        }
       
        Node node = ((GroupNode)start).find(path);
        if (node == null) {
            throw new NotFoundException(path);
        }
       
        return node;       
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.webapp.NotFoundException

   */
  private PublishedConfigSet getConfigSet(String setname) {
    PublishedConfigSet configSet =
        appState.getPublishedConfigSet(setname);
    if (configSet == null) {
      throw new NotFoundException("Not found: " + setname);
    }
    return configSet;
  }
View Full Code Here

Examples of org.apache.jackrabbit.mk.store.NotFoundException

        String parentPath = PathUtils.getParentPath(nodePath);
        String nodeName = PathUtils.getName(nodePath);

        StagedNode parent = getStagedNode(parentPath, true);
        if (parent.remove(nodeName) == null) {
            throw new NotFoundException(nodePath);
        }

        // discard any staged changes at nodePath
        unstageNode(nodePath);
    }
View Full Code Here

Examples of org.apache.jackrabbit.mongomk.impl.exception.NotFoundException

        String destParentPath = PathUtils.getParentPath(destPath);
        String destNodeName = PathUtils.getName(destPath);

        MongoNode srcParent = getStoredNode(srcParentPath, false);
        if (!srcParent.childExists(srcNodeName)) {
            throw new NotFoundException(srcPath);
        }
        MongoNode destParent = getStoredNode(destParentPath);
        if (destParent.childExists(destNodeName)) {
            throw new RuntimeException("Node already exists at copy destination path: " + destPath);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.