From d2af68a089121f1637debb405963920b63e98446 Mon Sep 17 00:00:00 2001 From: Alexander Diewald <diewald@fortiss.org> Date: Thu, 23 Feb 2017 12:30:11 +0000 Subject: [PATCH] - Forward Exceptions thrown by the system model adapter. --- .../alg/contribution/Opt4JDseBackend.java | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/org.fortiss.af3.exploration.alg/trunk/src/org/fortiss/af3/exploration/alg/contribution/Opt4JDseBackend.java b/org.fortiss.af3.exploration.alg/trunk/src/org/fortiss/af3/exploration/alg/contribution/Opt4JDseBackend.java index 74af4fdb..dac70f7f 100644 --- a/org.fortiss.af3.exploration.alg/trunk/src/org/fortiss/af3/exploration/alg/contribution/Opt4JDseBackend.java +++ b/org.fortiss.af3.exploration.alg/trunk/src/org/fortiss/af3/exploration/alg/contribution/Opt4JDseBackend.java @@ -77,21 +77,11 @@ public class Opt4JDseBackend implements IDseBackend { // Input to DSE: {@link SystemModelAdapter} and {@link DesignSpaceExploration}. // SystemModelAdapter systemModelAdapter; - try { - systemModelAdapter = - new AF3SystemModelAdapter( - parameters.getInputParameter(ComponentArchitecture.class), - parameters.getInputParameter(PlatformArchitecture.class), - parameters.getInputParameter(SystemParameterContainer.class)); - } catch(Exception ex) { - // ExplorationUiUtil - // .showExceptionErrorAsync( - // "Error setting up the DSE", - // "Could not transform the input models to a valid input for the DSE. Please check the Component Architecture, Platform Architecture, and referenced models.", - // ex); - ex.printStackTrace(); - return Optional.empty(); - } + systemModelAdapter = + new AF3SystemModelAdapter( + parameters.getInputParameter(ComponentArchitecture.class), + parameters.getInputParameter(PlatformArchitecture.class), + parameters.getInputParameter(SystemParameterContainer.class)); try { Explorer explorer = new Explorer(); -- GitLab