title: unexpected T_TRY, expecting T_FUNCTION error message, not sure why?
body: <p>I am getting unexpected T_TRY, expecting T_FUNCTION error message and am not sure as too why am getting that, can't we use try and catch block inside class like this:</p>
  
  <pre><code>class Processor
  {
  
      protected $dao;
  
      protected $fin;
  
      try
      {
          public function __construct($file)
          {
              //Open File for parsing.
              $this-&gt;fin = fopen($file,'w+') or die('Cannot open file');
              // Initialize the Repository DAO.
              $this-&gt;dao = new Dao('some name');
          }
  
          public function initiateInserts()
          {
              while (($data=fgetcsv($this-&gt;fin,5000,";"))!==FALSE)
              {
                  $initiate_inserts = $this-&gt;dao-&gt;initiateInserts($data);
              }
          }
          public function initiateCUpdates()
          {
              while (($data=fgetcsv($this-&gt;fin,5000,";"))!==FALSE)
              {
                  $initiate_updates = $this-&gt;dao-&gt;initiateCUpdates($data);
              }
          }
          public function initiateExecuteIUpdates()
          {
              while (($data=fgetcsv($this-&gt;fin,5000,";"))!==FALSE)
              {
                  $initiate_updates = $this-&gt;dao-&gt;initiateIUpdates($data);
              }
          }
      }
      catch (Exception $e)
      {
      }
  }
  </code></pre>