List of usage examples for java.sql SQLWarning getLocalizedMessage
public String getLocalizedMessage()
From source file:org.apache.ddlutils.platform.PlatformImplBase.java
/** * Logs any warnings associated to the given connection. Note that the connection needs * to be open for this.//from ww w. j a va 2 s . c o m * * @param connection The open connection */ protected void logWarnings(Connection connection) throws SQLException { SQLWarning warning = connection.getWarnings(); while (warning != null) { getLog().warn(warning.getLocalizedMessage(), warning.getCause()); warning = warning.getNextWarning(); } }