Bug 47175 - Throwables should have meaningful messages
Summary: Throwables should have meaningful messages
Status: RESOLVED FIXED
Alias: None
Product: XMLGraphicsCommons - Now in Jira
Classification: Unclassified
Component: image codecs (show other bugs)
Version: 1.3.1
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: --
Assignee: XML Graphics Project Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-09 03:49 UTC by Sebb
Modified: 2012-04-09 23:40 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebb 2009-05-09 03:49:18 UTC
There are a quite a few instances in the code where no message is passed to the throwable, e.g.

throw new RuntimeException()
throw new NullPointerException()

In other cases, the text is meaningless, so might as well not be there, e.g.

throw new Error("TIFFImageEncoder2");

It would help if meaningful messages were provided.
Comment 1 Glenn Adams 2012-04-09 23:40:06 UTC
http://svn.apache.org/viewvc?view=revision&revision=1311522

however, did not add message to NPE throws since context is sufficient