Title: PrintTranscoder - Incorrect Exception Handling

I just noticed that the PrintTranscoder that inherits from the SVGAbstractTranscoder does not throw a TranscoderException as the ImageTranscoders do.  The JavaDoc states that it does throw the TranscoderException however the code does not.  This appears to be a bug.

In my application (which led me to discover this problem), I transcode an SVG document and call the print() method from a PrintTranscoder.  If the SVG document being transcoded has an unrecognizable tag, the transcoder internally throws an exception but no exception is passed up to the public transcode() method.  Therefore, my calling code is completely unaware that the document has not printed due to the error.

Is this the intended behavior of the PrintTranscoder class?

Kevin Whittington
Catalina Marketing Corporation

Reply via email to