Return-Path: X-Original-To: apmail-db-derby-commits-archive@www.apache.org Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B3669A50 for ; Tue, 28 Feb 2012 13:16:47 +0000 (UTC) Received: (qmail 31430 invoked by uid 500); 28 Feb 2012 13:16:47 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 31409 invoked by uid 500); 28 Feb 2012 13:16:47 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 31402 invoked by uid 99); 28 Feb 2012 13:16:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 13:16:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 13:16:45 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 39642FAE for ; Tue, 28 Feb 2012 13:16:24 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Tue, 28 Feb 2012 13:16:23 -0000 Message-ID: <20120228131623.61281.80968@eos.apache.org> Subject: =?utf-8?q?=5BDb-derby_Wiki=5D_Update_of_=22UnwindExceptionChain=22_by_Knu?= =?utf-8?q?tAndersHatlen?= Auto-Submitted: auto-generated X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for = change notification. The "UnwindExceptionChain" page has been changed by KnutAndersHatlen: http://wiki.apache.org/db-derby/UnwindExceptionChain?action=3Ddiff&rev1=3D9= &rev2=3D10 causes for exceptions as well as more (distinct) errors, if present. This "redundancy" may change in the future. = + JDBC 4.0 also supports walking the exception chain using a for each loop: + = + {{{ + #!java numbers=3Doff + catch (SQLException e) { + for (Throwable t : e) { + System.out.println("Message: " + t.getMessage()); + } + } + }}} + = + = Inspecting `derby.log` for the stack dump of the error is often also useful in understanding what's going on. =20