Re: [PHP] When is an Exception not an Exception?




I'm afraid I wasn't clear enough.

I thought the "catch" block was not actually 'catching' anything, since I'm seeing an error message with the line of code that is causing the Fault.

Turns out, XDebug is kindly splatting out the exception even though it's being caught.

Which I'm sure it desirable to many folk in dev environment.

But my colleagues' habit of using Exceptions for non-exceptional events is pretty much going to drive me crazy, like it or not.

There's probably some setting for xdebug that I need to turn off to just ignore caught Exceptions.

Hopefully it will still blow up for un-caught Exceptions...

Sorry for the noise. Now that I know what is happening, I'm feeling silly for asking.

.



Relevant Pages

  • Re: How to avoid file I/O error when reading files with stringlist
    ... First, you're catching *all* exceptions, even the ones you didn't even know exist yet. ... You're catching EOutOfMemory, and to handle it, you're *allocating more memory* to display an error message, and then exiting the procedure as though everything is fine. ... Another problem is that you will call CloseFile no matter what -- even if the error occurs while calling AssignFile or Rewrite. ...
    (comp.lang.pascal.delphi.misc)
  • Re: keyboard command to break out of infinite loop?
    ... processed in the <watched code> section. ... If you run this code and hit Control-C in response to the prompt ... So, avoid "except:" when catching exceptions, and your life will be ...
    (comp.lang.python)
  • Re: how to let user instll: System_SR_de.cab
    ... > You should also suggest corrective action if you can. ... exceptions, and the logs will be propagated to the server. ... passed on to our support department. ... technical error message is a really bad one, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Best way to handle exceptions with try/finally
    ... Specify the exceptions you intend to ... such a catch-all clause with a misleading error message saying some file ... def putVar(self, variableName, value): ...
    (comp.lang.python)
  • Re: Abuse of the object-nature of functions?
    ... Try to make a habit out of catching only the exceptions you know will ... Catching everything generally is a bad idea. ... For example, I have a framework that executes modules (python functions), the framework wraps each function execution in a try/except block in order to compensate for what *might* happen. ...
    (comp.lang.python)