When is an Exception not an Exception?




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.

.



Relevant Pages

  • Re: [PHP] When is an Exception not an Exception?
    ... catch (Exception $e) ... SoapFault: No data found in C:\classes\Client.php on line 274 ... you dont have to use it if you dont want, in fact you could strip it out of ... extension throws exceptions. ...
    (php.general)
  • Re: JAX-WS: Wie Exceptions behandeln?
    ... SoapFault gemacht aber die Exception auch von "Java" ins Logfile ... Wenn ein SoapFault kommt hat der Server eine Exception geworfen und entsprechend etwas "falsch" gemacht. ...
    (de.comp.lang.java)
  • JAX-WS: Wie Exceptions behandeln?
    ... Wenn ich nun in einer der per SOAP erreichbaren Methoden eine Exception ... SoapFault gemacht aber die Exception auch von "Java" ins Logfile ...
    (de.comp.lang.java)
  • Re: JAX-WS: Wie Exceptions behandeln?
    ... SoapFault gemacht aber die Exception auch von "Java" ins Logfile ... Wenn der Server ein Datenbankproblem hat will ich dem Client zwar ebenfalls ...
    (de.comp.lang.java)