title: Is it possible to have Try/Catch Throw with multiple exceptions
body: <p>i have the following code and i'm wondering if i can use try &amp; catch as below:</p>
  
  <pre><code>class fun_database implements idbInfo{
      private $srvr=idbInfo::srvr_name;
      private $usr=idbInfo::usrnm;
      private $pass=idbInfo::psswrd;
      private $db=idbInfo::db_name;
  
      public function connct(){
          $hookup = new mysqli($this-&gt;srvr, $this-&gt;usr, $this-&gt;pass, $this-&gt;db);
  
          if ($hookup-&gt;connect_errno)     
          {
              throw new Exception("Error Processing Request", 1);
          }
      }
  
      public function sql_require_all($table_name, $table_col){
          $hookup = new connct();
  
          $result = $hookup-&gt;query("SELECT $table_col FROM $table_name");
              if($hookup-&gt;error()){
                 throw new Exception("Error Processing Request", 1);
              }
          return $result-&gt;num_rows;
      }
  }
  </code></pre>
  
  <p>This is a simple connection to the mysql and performing some querying there. Here is and the actual call of the functions above:</p>
  
  <pre><code>$conn = new fun_database();
      try{
          $result = $conn-&gt;sql_require_all('wordtypes', 'types');
      }
      catch(Exception $err){
          echo "Problems at:". $err-&gt;getMessage();
      }
      return "&lt;option&gt;".$result."&lt;/option&gt;";
  </code></pre>
  
  <p>What i'm asking is a bit theory. Most probably this code is NOT WORKING (i didn't test it yet). I just want to know is it possible with one 'try' to 'catch' two exceptions (as you can see the first 'throw' is in the second method of fun_database, and the second 'throw' is in the first method of the same object which is only called from the second method).</p>
  
  <p>sorry for making it too complicated but still can't figure it out id this structure of try/catch is working.</p>