Re: Call for Review: RFC for Error Handling in PHP5 packages

From: Date: Fri, 06 Aug 2004 16:34:36 +0000
Subject: Re: Call for Review: RFC for Error Handling in PHP5 packages
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32491@lists.php.net to get a copy of this message
Sergio Carvalho wrote:
On the other hand, if you define that authenticate checks authentication credentials and returns true if they're valid, false otherwise, then a wrong password is just normal behaviour. It should return false.
And, additionally in this case, if authenticate() encounters a problem in an underlying layer (i.e. DB), then that exception would bubble up (and be wrapped) through authenticate(). -Philippe

« previous php.pear.dev (#32491) next »