Package org.sleuthkit.datamodel

Examples of org.sleuthkit.datamodel.TskCoreException


        } catch (TskCoreException ex) {
            String msg = NbBundle
                    .getMessage(this.getClass(), "FileManager.addLocalFileSetRootDir.exception.errCreateDir.msg",
                                fileSetName);
            logger.log(Level.SEVERE, msg, ex);
            throw new TskCoreException(msg, ex);
        }

        return created;
    }
View Full Code Here


     */
    private AbstractFile addLocalDirInt(CaseDbTransaction trans, VirtualDirectory parentVd,
            java.io.File localFile, FileAddProgressUpdater addProgressUpdater) throws TskCoreException {

        if (tskCase == null) {
            throw new TskCoreException(
                    NbBundle.getMessage(this.getClass(), "FileManager.addLocalDirInt.exception.closed.msg"));
        }

        //final String localName = localDir.getName();
        if (!localFile.exists()) {
            throw new TskCoreException(
                    NbBundle.getMessage(this.getClass(), "FileManager.addLocalDirInt.exception.doesntExist.msg",
                                        localFile.getAbsolutePath()));
        }
        if (!localFile.canRead()) {
            throw new TskCoreException(
                    NbBundle.getMessage(this.getClass(), "FileManager.addLocalDirInt.exception.notReadable.msg",
                                        localFile.getAbsolutePath()));
        }


View Full Code Here

     *                          manager has already been closed
     */
    private synchronized LocalFile addLocalFileInt(AbstractFile parentFile, java.io.File localFile, CaseDbTransaction trans) throws TskCoreException {

        if (tskCase == null) {
            throw new TskCoreException(
                    NbBundle.getMessage(this.getClass(), "FileManager.addLocalDirInt2.exception.closed.msg"));
        }

        long size = localFile.length();
        boolean isFile = localFile.isFile();
View Full Code Here

                        node.isIsFile(), node.getParent().getFile(), "", ArchiveFileExtractorModuleFactory.getModuleName(), "", "");
                node.setFile(df);

            } catch (TskCoreException ex) {
                logger.log(Level.SEVERE, "Error adding a derived file to db:" + fileName, ex); //NON-NLS
                throw new TskCoreException(
                        NbBundle.getMessage(this.getClass(), "SevenZipIngestModule.UnpackedTree.exception.msg",
                        fileName), ex);
            }

            //recurse
View Full Code Here

TOP

Related Classes of org.sleuthkit.datamodel.TskCoreException

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.