Code example for SQLException

Methods: toString

0
                        db.bind_param(5, this.c_tel);
                        db.bind_param(6, this.c_email);
			db.executeUpdate();
			db.close();
			} catch(SQLException e){	
			   Error_Frame.Error(e.toString());
			}   
        } 
         
	/******************* 
         * update customer 
         *********************/ 
        public void updateCustomer(boolean equal) {
		Database db = dbconnect();
		try { 
                    StringBuilder query = new StringBuilder ();
                      
                     query.append("UPDATE customer SET firstname = ?, "
                                    + "lastname = ?, username = ?"); 
                     if (!equal) {
                          query.append(",password = hash_pw(?),");