title="class in org.apache.tools.ant">BuildException</a></pre>
<div class="block">Creates a new Connection as using the driver, url, userid and password
 specified.

 The calling method is responsible for closing the connection.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Connection the newly created connection or null if the
 connection failed and failOnConnectionError is false.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/tools/a