object oriented php4
Moderator: General Moderators
object oriented php4
what will the best solution when there is some exception is generated in function of class?
Re: object oriented php4
There is no exception handling in PHP4.rajan wrote:what will the best solution when there is some exception is generated in function of class?
You have to know what the error will look like and intercept it with a control statement. Whatever you do after that is completely up to you. You could die() with a message, log a message with a logging function, instantiate an error class, you name it!
I don't really think there is a canonical "best" solution to it.
Re: object oriented php4
Well put.foobar wrote:I don't really think there is a canonical "best" solution to it.