converting one type of object to another (php5)
From: codeMonkey (none_at_nowhere.com)
Date: 10/30/04
- Next message: codeMonkey: "sqlite OO interface and exceptions"
- Previous message: codeMonkey: "Re: Re: What is so special about PHP?"
- Next in thread: Janwillem Borleffs: "Re: converting one type of object to another (php5)"
- Reply: Janwillem Borleffs: "Re: converting one type of object to another (php5)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: codeMonkey: "sqlite OO interface and exceptions"
- Previous message: codeMonkey: "Re: Re: What is so special about PHP?"
- Next in thread: Janwillem Borleffs: "Re: converting one type of object to another (php5)"
- Reply: Janwillem Borleffs: "Re: converting one type of object to another (php5)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|