hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajith S (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-12309) [Refactor] Use java.lang.Throwable.addSuppressed(Throwable) instead of class org.apache.hadoop.io.MultipleIOException
Date Fri, 07 Aug 2015 01:37:45 GMT
Ajith S created HADOOP-12309:
--------------------------------

             Summary: [Refactor] Use java.lang.Throwable.addSuppressed(Throwable) instead
of class org.apache.hadoop.io.MultipleIOException
                 Key: HADOOP-12309
                 URL: https://issues.apache.org/jira/browse/HADOOP-12309
             Project: Hadoop Common
          Issue Type: Improvement
            Reporter: Ajith S
            Assignee: Ajith S
            Priority: Minor


Can use java.lang.Throwable.addSuppressed(Throwable) instead of org.apache.hadoop.io.MultipleIOException
as 1.7+ java provides support for this. org.apache.hadoop.io.MultipleIOException can be deprecated
as for now

{code}
............
catch (IOException e) {
          if(generalException == null)
          {
            generalException = new IOException("General exception");
          }
          generalException.addSuppressed(e);
        }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message