Autopsy  4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
ErrorInfo.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2014 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.coreutils;
20 
24 final public class ErrorInfo {
25 
26  private final String errorSource;
27  private final String message;
28  private final Exception exception;
29 
30  public ErrorInfo(String errorSource, String message) {
31  this.errorSource = errorSource;
32  this.message = message;
33  this.exception = null;
34  }
35 
36  public ErrorInfo(String errorSource, String message, Exception exception) {
37  this.errorSource = errorSource;
38  this.message = message;
39  this.exception = exception;
40  }
41 
42  public String getErrroSource() {
43  return this.errorSource;
44  }
45 
46  public String getMessage() {
47  return this.message;
48  }
49 
50  public boolean hasException() {
51  return exception != null;
52  }
53 
54  public Exception getException() {
55  return this.exception;
56  }
57 }
ErrorInfo(String errorSource, String message)
Definition: ErrorInfo.java:30
ErrorInfo(String errorSource, String message, Exception exception)
Definition: ErrorInfo.java:36

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.