Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 58224 invoked from network); 15 Jul 2010 00:58:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jul 2010 00:58:46 -0000 Received: (qmail 86545 invoked by uid 500); 15 Jul 2010 00:58:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 86493 invoked by uid 500); 15 Jul 2010 00:58:45 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 86486 invoked by uid 99); 15 Jul 2010 00:58:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 00:58:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 00:58:42 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6F0ops4013529 for ; Thu, 15 Jul 2010 00:50:51 GMT Message-ID: <7918122.388331279155050998.JavaMail.jira@thor> Date: Wed, 14 Jul 2010 20:50:50 -0400 (EDT) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1958) improve XSDG3 error to print container, actual i/o operation, and file name. In-Reply-To: <10088284.1160674715080.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888646#action_12888646 ] Bryan Pendleton commented on DERBY-1958: ---------------------------------------- > But still I don't understand how to get the parameters here {1} and {2}. StandardException.newException() has a whole bunch of overloads, each one is a different way to pass arguments to an error message. To create an exception with a message with 3 parameters, try using the overload which takes (messageID, Object[]), and in the Object array put your three arguments. Something like: throw StandardException.newException( SQLState.FILE_CONTAINER_EXCEPTION, new Object[] { this.toString(), "read", file }); > improve XSDG3 error to print container, actual i/o operation, and file name. > ---------------------------------------------------------------------------- > > Key: DERBY-1958 > URL: https://issues.apache.org/jira/browse/DERBY-1958 > Project: Derby > Issue Type: Improvement > Components: Store > Affects Versions: 10.1.3.1, 10.2.1.6, 10.3.1.4 > Reporter: Mike Matrigali > Priority: Trivial > > The current error does not give enough information to know what container is the problem: > ERROR XSDG3: Meta-data for Container > org.apache.derby.impl.store.raw.data.RAFContainer@10632cd could not be > accessed -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.