docs: public static void log(Logger logger, SQLException e) {
      SQLException next = e.getNextException();
      while (next != null) {
        logger.error("SQL error: {}. Message: {}", next.getSQLState(), next.getMessage());
        next = next.getNextException();
      }
    }