commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IO-148) IOException with constructors which take a cause
Date Fri, 21 Dec 2007 22:52:43 GMT

    [ 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.


Mime
View raw message