We're updating the issue view to help you get more done. 

Fix chaining of Java exceptions (set the cause)

Description

In all of the cases where we catch an exception, then throw a new one, we should
use the chaining mechanism (initCause()) in JDK 1.4 to avoid losing information.
For example, in UCharacter.java the following

catch (Exception e)
{
throw new RuntimeException(e.getMessage());
}

should be changed to:

catch (Exception e)
{
throw (RuntimeException) new RuntimeException(
"Could not initialize UCharacterProperty").initCause();
}

Could be done after DCUT

Environment

Status

Assignee

Mark Davis

Reporter

TracBot

Labels

Time Needed

Days

tracCreated

Jun 11, 2005, 3:25 AM

tracOwner

mark

tracProject

ICU4J

tracReporter

mark.davis@a95c9666650cfc8d

tracStatus

accepted

tracWeeks

1

Components

Priority

assess