diff --git a/src/main/java/de/neemann/digital/builder/circuit/CircuitBuilder.java b/src/main/java/de/neemann/digital/builder/circuit/CircuitBuilder.java index 6edd16b59..075aae979 100644 --- a/src/main/java/de/neemann/digital/builder/circuit/CircuitBuilder.java +++ b/src/main/java/de/neemann/digital/builder/circuit/CircuitBuilder.java @@ -3,6 +3,7 @@ import de.neemann.digital.analyse.DetermineJKStateMachine; import de.neemann.digital.analyse.expression.*; import de.neemann.digital.analyse.expression.Not; +import de.neemann.digital.analyse.expression.format.FormatterException; import de.neemann.digital.builder.BuilderException; import de.neemann.digital.builder.BuilderInterface; import de.neemann.digital.core.basic.*; @@ -124,7 +125,7 @@ public CircuitBuilder addSequential(String name, Expression expression) throws B fragments.add(new FragmentExpression(Arrays.asList(frJ, frK), fe)); } } - } catch (Exception e) { + } catch (ExpressionException | FormatterException e) { throw new BuilderException(e.getMessage()); } } diff --git a/src/main/java/de/neemann/digital/core/element/Keys.java b/src/main/java/de/neemann/digital/core/element/Keys.java index e43d68476..23e6069a8 100644 --- a/src/main/java/de/neemann/digital/core/element/Keys.java +++ b/src/main/java/de/neemann/digital/core/element/Keys.java @@ -40,7 +40,7 @@ private Keys() { */ public static final Key.KeyInteger SIZE = new Key.KeyInteger("Size", 1) - .setComboBoxValues(new Integer[]{1,2, 3, 4, 5}) + .setComboBoxValues(new Integer[]{1, 2, 3, 4, 5}) .setMin(1); /** * The value of constants