Re: HTTP_Request2 heads up: cookie jar and exception hierarchy

From: Date: Fri, 25 Feb 2011 19:05:27 +0000
Subject: Re: HTTP_Request2 heads up: cookie jar and exception hierarchy
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-54115@lists.php.net to get a copy of this message
Hi Alexey, > > For exception hierarchy I see roughly the following: > > - pilot errors > > - missing data, passing junk to methods > > - configuration errors (trying to use Curl Adapter without curl > > enabled; trying to decode gzip/deflate encoded response without > > gzip) > > - network errors > > - connection error: unknown host, connection timeout, SSL > > validation failure... > > - request timeout > > - response errors > > - protocol error: non-HTTP response, broken encoding > > - redirect error: redirect to non-HTTP protocol, maximum number > > of redirects exceeded Sounds sensible. > Here is a more refined idea: > HTTP_Request2_Exception > |- HTTP_Request2_NotImplementedException > |- HTTP_Request2_LogicException > |- HTTP_Request2_ConnectionException > \- HTTP_Request2_MessageException Why not "HTTP_Request_Exception_Message"? -- Regards/Mit freundlichen Grüßen Christian Weiske -=≡ Geeking around in the name of science since 1982 ≡=-

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.dev (#54115) next »