Skip to content
Snippets Groups Projects
Commit 2b07f813 authored by Falilou Thiam's avatar Falilou Thiam
Browse files

declare throwing ArchivingException instead of Exception

parent a0cdfc71
No related branches found
No related tags found
No related merge requests found
......@@ -539,7 +539,7 @@ public class DefaultLifeCycleManager implements LifeCycleManager {
/**
* 5 juil. 2005
*/
private void saveOptions() throws Exception {
private void saveOptions() throws ArchivingException {
try {
final Options optionsToSave = Options.getInstance();
final IOptionsManager optionsManager = OptionsManagerFactory.getCurrentImpl();
......@@ -558,7 +558,7 @@ public class DefaultLifeCycleManager implements LifeCycleManager {
/**
* 5 juil. 2005
*/
private void saveHistory() throws Exception {
private void saveHistory() throws ArchivingException {
try {
final History historyToSave = History.getCurrentHistory();
......
......@@ -66,7 +66,7 @@ public class XMLOptionsManager extends XMLDataManager<Options, Map<String, List<
* .bensikin.options.Options, java.lang.String)
*/
@Override
public void saveOptions(Options options, String optionsResourceLocation) throws Exception {
public void saveOptions(Options options, String optionsResourceLocation) throws ArchivingException {
saveData(options, optionsResourceLocation);
}
......
......@@ -8,6 +8,7 @@ import javax.swing.SwingWorker;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.soleil.archiving.common.api.exception.ArchivingException;
import fr.soleil.lib.project.ICancelable;
import fr.soleil.lib.project.ObjectUtils;
import fr.soleil.lib.project.swing.dialog.ProgressDialog;
......@@ -71,7 +72,7 @@ public abstract class ArchivingSwingWorker<U, V> extends SwingWorker<U, V> imple
}
}
protected abstract U doTheJob() throws Exception;
protected abstract U doTheJob() throws ArchivingException;
protected abstract void afterJob(U jobResult);
......
......@@ -156,7 +156,7 @@ public class VCExtractionSwingWorker extends ArchivingSwingWorker<Void, Transmit
}
@Override
protected Void doTheJob() throws Exception {
protected Void doTheJob() throws ArchivingException {
ViewConfigurationBean vcBean = ObjectUtils.recoverObject(vcBeanRef);
IExtractingManager extractingManager = ExtractingManagerFactory.getCurrentImpl();
if ((vcBean != null) && (extractingManager != null)) {
......
......@@ -83,7 +83,7 @@ public class VCRefreshSwingWorker extends ArchivingSwingWorker<Void, String> imp
}
@Override
protected Void doTheJob() throws Exception {
protected Void doTheJob() throws ArchivingException {
ChartPropertiesUtils.configurationListenerEnabled = false;
ViewConfigurationBean vcBean = ObjectUtils.recoverObject(vcBeanRef);
if (vcBean != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment