When is an Exception not an Exception?
- From: ceo@xxxxxxxxx
- Date: 31 Dec 2008 19:41:48 -0000
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.
.
- Follow-Ups:
- Re: [PHP] When is an Exception not an Exception?
- From: "Nathan Nobbe"
- Re: [PHP] When is an Exception not an Exception?
- Prev by Date: Re: [PHP] =.='' what wrong ? just simple code, however error.
- Next by Date: Re: [PHP] When is an Exception not an Exception?
- Previous by thread: Question about version control.. sorta..
- Next by thread: Re: [PHP] When is an Exception not an Exception?
- Index(es):
Relevant Pages
|