Bug 47175

Summary: Throwables should have meaningful messages
Product: XMLGraphicsCommons - Now in Jira Reporter: Sebb <sebb>
Component: image codecsAssignee: XML Graphics Project Mailing List <general>
Severity: normal    
Priority: P2    
Version: 1.3.1   
Target Milestone: --   
Hardware: PC   
OS: Windows XP   

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

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