pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1646634 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeyDecryptionMaterial.java
Date Fri, 19 Dec 2014 06:50:46 GMT
Author: tilman
Date: Fri Dec 19 06:50:46 2014
New Revision: 1646634

URL: http://svn.apache.org/r1646634
Log:
PDFBOX-2576: keep orginal stack trace when throwing new exception

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeyDecryptionMaterial.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeyDecryptionMaterial.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeyDecryptionMaterial.java?rev=1646634&r1=1646633&r2=1646634&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeyDecryptionMaterial.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeyDecryptionMaterial.java
Fri Dec 19 06:50:46 2014
@@ -143,11 +143,11 @@ public class PublicKeyDecryptionMaterial
         }
         catch(UnrecoverableKeyException ex)
         {
-            throw new KeyStoreException("the private key is not recoverable");
+            throw new KeyStoreException("the private key is not recoverable", ex);
         }
         catch(NoSuchAlgorithmException ex)
         {
-            throw new KeyStoreException("the algorithm necessary to recover the key is not
available");
+            throw new KeyStoreException("the algorithm necessary to recover the key is not
available", ex);
         }
     }
 }



Mime
View raw message