Skip to content
Snippets Groups Projects
Commit 55bb01f3 authored by apriestman's avatar apriestman
Browse files

Adding AddDataSourceCallbacks.java and AddDataSourceCallbackException.java

parent 0255ed18
No related branches found
No related tags found
No related merge requests found
/*
* SleuthKit Java Bindings
*
* Copyright 2020 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.sleuthkit.datamodel;
/**
*
*/
public class AddDataSourceCallbackException extends TskException {
private static final long serialVersionUID = 123049876L;
/**
* Default constructor when error message is not available
*/
public AddDataSourceCallbackException() {
super("No error message available.");
}
/**
* Create exception containing the error message
*
* @param msg the message
*/
public AddDataSourceCallbackException(String msg) {
super(msg);
}
/**
* Create exception containing the error message and cause exception
*
* @param msg the message
* @param ex cause exception
*/
public AddDataSourceCallbackException(String msg, Exception ex) {
super(msg, ex);
}
}
/*
* SleuthKit Java Bindings
*
* Copyright 2020 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.sleuthkit.datamodel;
import java.util.List;
/**
*
*/
public interface AddDataSourceCallbacks {
void onDataSourceAdded(long dataSourceObjectId) throws AddDataSourceCallbackException;
void onFilesAdded(List<Long> fileObjectIds) throws AddDataSourceCallbackException;
void onCompleted() throws AddDataSourceCallbackException;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment