Re: Common way of error handling?

From: Date: Fri, 12 May 2000 22:39:39 +0000
Subject: Re: Common way of error handling?
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-100@lists.php.net to get a copy of this message
Ulf Wendel wrote: > > Hi! > > Is there a common way of error handling in PEAR modules? There isn't. Personally, I like Java's exceptions in that you throw objects, and that you can subclass exception classes. DB has a somewhat abstracted error concept (where the definition of "error" currently is "negative integer"). It would make sense to steal some from Java and extend this to make the error concept "an object of this class (or a subclass)" and make it general at the same time. - Stig

« previous php.pear (#100) next »