When is an Exception not an Exception?

From: Date: Wed, 31 Dec 2008 19:41:48 +0000
Subject: When is an Exception not an Exception?
Groups: php.general 
Request: Send a blank email to php-general+get-285302@lists.php.net to get a copy of this message
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.

« previous php.general (#285302) next »