Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B268710F0B for ; Tue, 25 Feb 2014 08:49:30 +0000 (UTC) Received: (qmail 91852 invoked by uid 500); 25 Feb 2014 08:49:27 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 91387 invoked by uid 500); 25 Feb 2014 08:49:24 -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 91314 invoked by uid 99); 25 Feb 2014 08:49:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 08:49:19 +0000 Date: Tue, 25 Feb 2014 08:49:19 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6484) Include SQLState in client exception messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13911397#comment-13911397 ] ASF subversion and git services commented on DERBY-6484: -------------------------------------------------------- Commit 1571615 from [~knutanders] in branch 'code/trunk' [ https://svn.apache.org/r1571615 ] DERBY-6484: Include SQLState in client exception messages > Include SQLState in client exception messages > --------------------------------------------- > > Key: DERBY-6484 > URL: https://issues.apache.org/jira/browse/DERBY-6484 > Project: Derby > Issue Type: Improvement > Components: Network Client > Affects Versions: 10.11.0.0 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Priority: Minor > Fix For: 10.11.0.0 > > Attachments: d6484-1a.diff > > > When the embedded driver raises an SQLException, it is linked to a iapi.error.StandardException whose toString() method adds the SQLState to the error message. An SQLException raised by the client driver is linked to a client.am.SqlException, which does not add the SQLState. Because of this, printStackTrace() gives more information when called on an embedded exception. You have to call getSQLState() on the client exception in order to see the SQLState. > We should change client.am.SqlException's toString() method to work the same way as StandardException.toString(). > See also the discussion in DERBY-1997. -- This message was sent by Atlassian JIRA (v6.1.5#6160)