code: @Override
      public void doConnectionSetup(Connection conn) throws SQLException {
          SQLWarning warn = conn.getWarnings();
  
          if (warn != null) {
              SQLException sqlex = null;
              String sqlstate = warn.getSQLState();
  
              if (sqlstate.equals("010UF")) { // jConnect cannot connect to the database specified in the connection URL.
                  sqlex = new SQLException(warn.getMessage(), sqlstate);
                  // OK we have the main exception, now chain all of the rest
                  SQLException sqlex2;
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) 
                      Tr.debug(this, tc, sqlstate + warn.getMessage());
  
                  warn = warn.getNextWarning();
                  while (warn != null) {
                      sqlex2 = new SQLException(warn.getMessage(), warn.getSQLState());
                      sqlex.setNextException(sqlex2);
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                          Tr.debug(this, tc, warn.getSQLState() + warn.getMessage());
                      warn = warn.getNextWarning();
                  }
                  throw sqlex;
              }
          }
      }
docs: <p>This method configures a connection before first use. This method is invoked only when a new
  connection to the database is created. It is not invoked when connections are reused
  from the connection pool.</p>
  
  <p><code>SybaseHelper</code> checks the <code>SQLWarnings</code> on the
  connection to determine if a connection was made to the requested database.
  If the requested database does not exist, Sybase's
  standard behavior is to connect a "default database" and log a <code>SQLWarning</code>.
  This method scans for this <code>SQLWarning</code> and if found, throws a
  <code>SQLException</code> based on the contents of the <code>SQLWarning</code>
  indicating that a connection to the requested database could not be established.</p>
  
  @param conn the connection to set up.
  @exception SQLException if connection setup cannot be completed successfully.