Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public List<String> listDatabaseNames() {
.map(n -> n.level(n.length() - 1))
.collect(Collectors.toList()));
} catch (Exception e) {
throw new RuntimeException("Failed to list database names, error message is: " + e.getMessage());
throw new RuntimeException("Failed to list database names, error message is:" + e.getMessage(), e);
}
}

Expand All @@ -123,7 +123,7 @@ public void createDb(CreateDbStmt stmt) throws DdlException {
});
} catch (Exception e) {
throw new DdlException("Failed to create database: "
+ stmt.getFullDbName() + " ,error message is: " + e.getMessage());
+ stmt.getFullDbName() + ", error message is:" + e.getMessage(), e);
}
}

Expand Down Expand Up @@ -159,7 +159,7 @@ public void dropDb(DropDbStmt stmt) throws DdlException {
});
} catch (Exception e) {
throw new DdlException(
"Failed to drop database: " + stmt.getDbName() + ", error message is: " + e.getMessage(), e);
"Failed to drop database: " + stmt.getDbName() + ", error message is:" + e.getMessage(), e);
}
}

Expand All @@ -183,7 +183,8 @@ public boolean createTable(CreateTableStmt stmt) throws UserException {
try {
preExecutionAuthenticator.execute(() -> performCreateTable(stmt));
} catch (Exception e) {
throw new DdlException("Failed to create table: " + stmt.getTableName() + " ,error message is:", e);
throw new DdlException(
"Failed to create table: " + stmt.getTableName() + ", error message is:" + e.getMessage(), e);
}
return false;
}
Expand Down Expand Up @@ -227,7 +228,8 @@ public void dropTable(DropTableStmt stmt) throws DdlException {
return null;
});
} catch (Exception e) {
throw new DdlException("Failed to drop table: " + stmt.getTableName() + " ,error message is:", e);
throw new DdlException(
"Failed to drop table: " + stmt.getTableName() + ", error message is:" + e.getMessage(), e);
}
}

Expand Down
Loading