Shape.addTextFrame throws Exception



I am using Aspose.PowerPoint for Java version and just began using the method Shape.addTextFrame. I noticed that it throws the generic exception object Exception.

I don't mean to be a "know-it-all", but shouldn't this really be some subclass of PptException or PptEditException?

Since it throws Exception, my code has to catch it. Today, I had a bug in my code that caused a NullPointerException to be thrown and the Exception catch phrase caught it making it was harder to debug.

Just an idle comment,
Randy Stegbauer


It has been replaced with PptEditException in 1.4.3.



I began using 1.4.3 and Shape.addTextFrame doesn't throw Exception as expected.

However, there are three other methods in TextFrame that still do:

  1. setFlipH
  2. setFlipV
  3. setRotation

Of course, this is not serious.

Thank you,
Randy Stegbauer.