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

Status

Assignee

Mark Davis

Reporter

TracBot

Labels

Reviewer

None

Time Needed

Days

Start date

None

Components

Priority

assess