You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/01/21 19:22:17 UTC

svn commit: r1851764 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceEntry.java

Author: tilman
Date: Mon Jan 21 19:22:17 2019
New Revision: 1851764

URL: http://svn.apache.org/viewvc?rev=1851764&view=rev
Log:
PDFBOX-4071: include text in exception

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceEntry.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceEntry.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceEntry.java?rev=1851764&r1=1851763&r2=1851764&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceEntry.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceEntry.java Mon Jan 21 19:22:17 2019
@@ -80,7 +80,7 @@ public class PDAppearanceEntry implement
     {
         if (!isStream())
         {
-            throw new IllegalStateException();
+            throw new IllegalStateException("This entry is not an appearance stream");
         }
         return new PDAppearanceStream((COSStream) entry);
     }
@@ -94,7 +94,7 @@ public class PDAppearanceEntry implement
     {
         if (!isSubDictionary())
         {
-            throw new IllegalStateException();
+            throw new IllegalStateException("This entry is not an appearance subdictionary");
         }
 
         COSDictionary dict = entry;