@Override public void execute(String[] args) { String tableName = args[0]; String structuredSignature = args[1]; boolean newTableIsCreated; try { newTableIsCreated = state.databaseAdapter.createTable(tableName, structuredSignature); } catch (UnsupportedOperationException | IllegalArgumentException e) { state.printErrorMessage(e.getMessage()); return; } catch (WrappedIOException e) { throw new CommandExecutionException(e.getMessage()); } if (newTableIsCreated) { state.printUserMessage("created"); } else { state.printUserMessage(tableName + " exists"); } }