Code:
try {
url = "jdbc:mysql://" + this.hostname + ":" + this.portnmbr + "/" + this.database;
return DriverManager.getConnection(url, this.username, this.password);
} catch (SQLException e) {
writeError(url, true);
writeError("Could not be resolved because of an SQL Exception: " + e.getMessage() + ".", true);
}