When is an Exception not an Exception?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have code like this:

try
{
  $details = $this->__client->getData($email); //Line 274
}
catch (SoapFault $sf)
{
  //do stuff
}
catch (Exception $e)
{
  //do more general stuff
}

SoapFault: No data found in C:\classes\Client.php on line 274

Hello?

What is the point of all this try/catch stuff, eh?

I don't think we've done anything particularly fancy/tricky with the class hierarchy.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux