You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2009/05/09 09:19:48 UTC

DO NOT REPLY [Bug 47171] Should never use Error to report runtime errors

https://issues.apache.org/bugzilla/show_bug.cgi?id=47171





--- Comment #1 from Helder Magalhães <he...@gmail.com>  2009-05-09 00:19:46 PST ---
(In reply to comment #0)
> TIFFImageEncoder uses Error to report unexpected conditions, e.g.

Although not very familiar with this, regarding this specific class I'd say
there's pending effort into using XML Graphics Commons [1] for the task (this
implementation should be abandoned in favor of a more compatible one (see bug
38183 and bug 46513).


> Using Error makes it hard to safely catch the exception, as there are some
> Errors that should not be caught (e.g. ThreadDeath)
[...]
> There are over 70 classes where Error is thrown [...]

I haven't dig up on this enough but, for what it's worth, I'd vote on this
also. :-)


[1] http://xmlgraphics.apache.org/commons/#features

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org