Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 81271 invoked from network); 21 Dec 2007 22:53:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Dec 2007 22:53:07 -0000 Received: (qmail 69647 invoked by uid 500); 21 Dec 2007 22:52:55 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 69578 invoked by uid 500); 21 Dec 2007 22:52:54 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 69569 invoked by uid 99); 21 Dec 2007 22:52:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2007 14:52:54 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2007 22:52:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 05B5A714045 for ; Fri, 21 Dec 2007 14:52:43 -0800 (PST) Message-ID: <16419385.1198277563020.JavaMail.jira@brutus> Date: Fri, 21 Dec 2007 14:52:43 -0800 (PST) From: "Gary Gregory (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (IO-148) IOException with constructors which take a cause In-Reply-To: <23380129.1198261603751.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IO-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554055 ] Gary Gregory commented on IO-148: --------------------------------- I've committed a first cut with only one constructor implemented. I do not see the need for the String only constructor since the point of the class is to support a cause. If you want to build an IOException with a String message why not just use IOException? I've named the class CausedIOException, for now. More name discussion? > IOException with constructors which take a cause > ------------------------------------------------ > > Key: IO-148 > URL: https://issues.apache.org/jira/browse/IO-148 > Project: Commons IO > Issue Type: New Feature > Reporter: Niall Pemberton > Priority: Minor > Fix For: 1.4 > > > Add an IOException implementation that has constructors which take a cause (see TIKA-104). Constructors which take a cause (Throwable) were not added to IOException until JDK 1.6 but the initCause() method was added to Throwable in JDK 1.4. > We should copy the Tika implementation and test case here: > http://svn.apache.org/repos/asf/incubator/tika/trunk/src/main/java/org/apache/tika/exception/CauseIOException.java > http://svn.apache.org/repos/asf/incubator/tika/trunk/src/test/java/org/apache/tika/exception/CauseIOExceptionTest.java -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.