Package org.sleuthkit.autopsy.coreutils

Examples of org.sleuthkit.autopsy.coreutils.ErrorInfo


        return childElem;
    }

    private void recordError(String errorMessage) {
        ExternalResultsXMLParser.logger.log(Level.SEVERE, errorMessage);
        this.errors.add(new ErrorInfo(this.getClass().getSimpleName(), errorMessage));
    }
View Full Code Here


        this.errors.add(new ErrorInfo(this.getClass().getSimpleName(), errorMessage));
    }

    private void recordError(String errorMessage, Exception ex) {
        ExternalResultsXMLParser.logger.log(Level.SEVERE, errorMessage, ex);
        this.errors.add(new ErrorInfo(this.getClass().getSimpleName(), errorMessage, ex));
    }
View Full Code Here

                        } else {
                            String errorMessage = NbBundle.getMessage(this.getClass(),
                                                                      "ExternalResultsImporter.importDerivedFiles.errMsg1.text",
                                                                      localPath, parentFilePath);
                            ExternalResultsImporter.logger.log(Level.SEVERE, errorMessage);
                            this.errors.add(new ErrorInfo(ExternalResultsImporter.class.getName(), errorMessage));
                        }
                    }
                } else {
                    String errorMessage = NbBundle.getMessage(this.getClass(),
                                                              "ExternalResultsImporter.importDerivedFiles.errMsg2.text",
                                                              localPath);
                    ExternalResultsImporter.logger.log(Level.SEVERE, errorMessage);
                    this.errors.add(new ErrorInfo(ExternalResultsImporter.class.getName(), errorMessage));
                }
            } catch (TskCoreException ex) {
                String errorMessage = NbBundle.getMessage(this.getClass(),
                                                          "ExternalResultsImporter.importDerivedFiles.errMsg3.text",
                                                          localPath);
                ExternalResultsImporter.logger.log(Level.SEVERE, errorMessage, ex);
                this.errors.add(new ErrorInfo(ExternalResultsImporter.class.getName(), errorMessage, ex));
            }
        }
    }
View Full Code Here

                                                                          "ExternalResultsImporter.importArtifacts.caseErrMsg1.text",
                                        attributeData.getType(), attributeData.getValue(),
                                        artifactData.getType(), artifactData.getSourceFilePath(),
                                        attributeData.getValueType());
                                ExternalResultsImporter.logger.log(Level.SEVERE, errorMessage);
                                this.errors.add(new ErrorInfo(ExternalResultsImporter.class.getName(), errorMessage));
                                break;
                        }
                    }
                    artifact.addAttributes(attributes);

                    if (standardArtifactTypeIds.contains(artifactTypeId)) {
                        IngestServices.getInstance().fireModuleDataEvent(new ModuleDataEvent(this.getClass().getSimpleName(), BlackboardArtifact.ARTIFACT_TYPE.fromID(artifactTypeId)));
                    }
                } else {
                    String errorMessage = NbBundle.getMessage(this.getClass(),
                                                              "ExternalResultsImporter.importArtifacts.errMsg1.text",
                                                              artifactData.getType(), artifactData.getSourceFilePath());
                    ExternalResultsImporter.logger.log(Level.SEVERE, errorMessage);
                    this.errors.add(new ErrorInfo(ExternalResultsImporter.class.getName(), errorMessage));
                }
            } catch (TskCoreException ex) {
                String errorMessage = NbBundle.getMessage(this.getClass(),
                                                          "ExternalResultsImporter.importArtifacts.errMsg2.text",
                                                          artifactData.getType(), artifactData.getSourceFilePath());
                ExternalResultsImporter.logger.log(Level.SEVERE, errorMessage, ex);
                this.errors.add(new ErrorInfo(ExternalResultsImporter.class.getName(), errorMessage, ex));
            }
        }
    }
View Full Code Here

                if (reportFile.exists()) {
                    Case.getCurrentCase().addReport(reportPath, report.getSourceModuleName(), report.getReportName());
                } else {
                    String errorMessage = NbBundle.getMessage(this.getClass(), "ExternalResultsImporter.importReports.errMsg1.text", reportPath);
                    ExternalResultsImporter.logger.log(Level.SEVERE, errorMessage);
                    this.errors.add(new ErrorInfo(ExternalResultsImporter.class.getName(), errorMessage));
                }
            } catch (TskCoreException ex) {
                String errorMessage = NbBundle.getMessage(this.getClass(), "ExternalResultsImporter.importReports.errMsg2.text", reportPath);
                ExternalResultsImporter.logger.log(Level.SEVERE, errorMessage, ex);
                this.errors.add(new ErrorInfo(ExternalResultsImporter.class.getName(), errorMessage, ex));
            }
        }
    }
View Full Code Here

//        return false;
//    }   
//   
    private void recordError(String errorMessage) {
        ExternalResultsImporter.logger.log(Level.SEVERE, errorMessage);
        this.errors.add(new ErrorInfo(this.getClass().getName(), errorMessage));
    }
View Full Code Here

        this.errors.add(new ErrorInfo(this.getClass().getName(), errorMessage));
    }

    private void recordError(String errorMessage, Exception ex) {
        ExternalResultsImporter.logger.log(Level.SEVERE, errorMessage, ex);
        this.errors.add(new ErrorInfo(this.getClass().getName(), errorMessage));
    }
View Full Code Here

TOP

Related Classes of org.sleuthkit.autopsy.coreutils.ErrorInfo

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.