APISonar


org.sonar.server.db.migrations.SqlUtil.log

> org > sonar > server > db > migrations > SqlUtil > log
org APIs sonar APIs server APIs db APIs migrations APIs SqlUtil APIs log APIs

Example 1
public void log_all_sql_exceptions() {
    SQLException root = new SQLException("this is root", "123");
    SQLException next = new SQLException("this is next", "456");
    root.setNextException(next);

    Logger logger = mock(Logger.class);
    SqlUtil.log(logger, root);

    verify(logger).error("SQL error: {}. Message: {}", "456", "this is next");
  }