Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 69771 invoked from network); 29 Dec 2004 17:05:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Dec 2004 17:05:13 -0000 Received: (qmail 25642 invoked by uid 500); 29 Dec 2004 17:04:49 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 25580 invoked by uid 500); 29 Dec 2004 17:04:49 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 25536 invoked by uid 99); 29 Dec 2004 17:04:49 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of apr-dev@m.gmane.org designates 80.91.229.2 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: dev@apr.apache.org To: dev@apr.apache.org From: Joe Schaefer Subject: apr_status_t for apr apps Date: Wed, 29 Dec 2004 12:04:21 -0500 Lines: 21 Message-ID: <87oegd6noq.fsf@gemini.sunstarsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-3-10-33.mia.bellsouth.net Mail-Copies-To: never User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:R+rySi3T+TmypU9ngXBKUrlfXW8= Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N There are quite a few places within apreq where some error condition is detected, and it's of the form "some apr function call failed, or else something's wrong with the input data". The first case can be handled well enough with an apr_status_t field, but in apreq we don't do a good enough job with the second: we just log the specific error and return APR_EGENERAL. I'd really like to replace the APR_EGENERAL error code with something more specific for the few (but relatively frequent) cases that trigger it. Is there some region of the apr_status_t number range for application-specific error codes? How do folks here normally deal with this? Thanks! -- Joe Schaefer