From dev-return-27428-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Mon Mar 01 11:38:43 2010 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 55831 invoked from network); 1 Mar 2010 11:38:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 11:38:43 -0000 Received: (qmail 70509 invoked by uid 500); 1 Mar 2010 11:38:42 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 70467 invoked by uid 500); 1 Mar 2010 11:38:42 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 70460 invoked by uid 99); 1 Mar 2010 11:38:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 11:38:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@day.com designates 207.126.148.88 as permitted sender) Received: from [207.126.148.88] (HELO eu3sys201aog102.obsmtp.com) (207.126.148.88) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 01 Mar 2010 11:38:34 +0000 Received: from source ([209.85.220.209]) by eu3sys201aob102.postini.com ([207.126.154.11]) with SMTP ID DSNKS4unJOExjZ/P6BqOhRiTcTSOyYwtjlQE@postini.com; Mon, 01 Mar 2010 11:38:13 UTC Received: by fxm1 with SMTP id 1so2826758fxm.15 for ; Mon, 01 Mar 2010 03:38:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.5.212 with SMTP id 20mr4851687faw.19.1267443492226; Mon, 01 Mar 2010 03:38:12 -0800 (PST) In-Reply-To: <91f3b2651002280741k36a8a716y7ff32016a1396976@mail.gmail.com> References: <91f3b2651002280741k36a8a716y7ff32016a1396976@mail.gmail.com> Date: Mon, 1 Mar 2010 12:38:12 +0100 Message-ID: Subject: Re: [jr3] Exception Handling From: Alexander Klimetschek To: dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, Feb 28, 2010 at 16:41, Thomas M=FCller wro= te: > =3D=3D Use Error Codes =3D=3D > > Currently exception message are hardcoded (in English). When using > error codes, exception messages could be translated. I'm not saying we > should translate them ourselves, but if somebody wants to, he could. > > =3D=3D Include the Jackrabbit Version in Exceptions =3D=3D > > This is mainly to simplify support: it's very easy to say what version > was used when somebody posts an exception message. Example: > "Repository is closed [1000-3.0.1003]" - this would mean error code > 1000, Jackrabbit version 3.0, build 1003. The build number alone would > be enough, but for the user it may be better to also include the > version. > > Also, it will allow looking at the source code without having to > download the source code of the correct version, even without having > to install an IDE. I wrote a simple JavaScript application: > http://www.h2database.com/html/sourceError.html - if you paste an > exception in the 'Input' text area, it will link to the source code > and display additional information. +1 I like the result that error stack trace analysis can be automated then. This makes it much faster for a dev knowing the internal code to spot any error, w/o having to find the proper version of a source file first (and w/o having to ask for the jackrabbit version on the list). Regards, Alex --=20 Alexander Klimetschek alexander.klimetschek@day.com