converting one type of object to another (php5)

From: codeMonkey (none_at_nowhere.com)
Date: 10/30/04


Date: Sat, 30 Oct 2004 15:49:09 GMT

I've sub-classed the Excepton class. My new class, Err, provides some added
functionality like a fatal() method which display a 'system error' page and
logs the error.

Is there any way to convert an Exception object to an Err object before I
throw it? That way, I could use my custom methods even on default exception
objects.



Relevant Pages

  • Re: Merge replication and clustering
    ... Font: Microsoft SQL Server 2000 Windows CE Edition ... Exception: ... Err.: 0 ... > dbcc dbreindex ...
    (microsoft.public.sqlserver.replication)
  • [RFC v2 -tip 1/3] x86: uaccess: introduce try and catch framework
    ... introduce new uaccess exception handling framework ... the block and gets err if an exception occured in _user_exin the ...
    (Linux-Kernel)
  • Re: error messages containing unicode
    ... except Exception, err: ... My main point about the built-ins is that I want to catch them along ... string or a tuple containing the relevant string and the documentation ...
    (comp.lang.python)
  • Try, except...retry?
    ... Alex Martelli wrote in another thread: ... > except Exception, err: ... a while loop and a retry flag, or 2) just repeating the assignment: ...
    (comp.lang.python)
  • Re: Why doesnt JavaScript have a goto command?
    ... catch (err) ... bubble up to my code if the library caught the exception and did not ... commecial apps that use a lot of 3rd party apps. ... Would there even be a relevant error ...
    (comp.lang.javascript)