Package mungbean

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

TOP

Related Classes of mungbean.NotFoundException

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.