pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1851765 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceEntry.java
Date Mon, 21 Jan 2019 19:22:22 GMT
Author: tilman
Date: Mon Jan 21 19:22:21 2019
New Revision: 1851765

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

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

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceEntry.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceEntry.java?rev=1851765&r1=1851764&r2=1851765&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceEntry.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAppearanceEntry.java
Mon Jan 21 19:22:21 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 = (COSDictionary) entry;



Mime
View raw message