pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1792786 - /pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightConfiguration.java
Date Wed, 26 Apr 2017 18:05:10 GMT
Author: tilman
Date: Wed Apr 26 18:05:10 2017
New Revision: 1792786

URL: http://svn.apache.org/viewvc?rev=1792786&view=rev
Log:
PDFBOX-3766: fix exception handling

Modified:
    pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightConfiguration.java

Modified: pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightConfiguration.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightConfiguration.java?rev=1792786&r1=1792785&r2=1792786&view=diff
==============================================================================
--- pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightConfiguration.java
(original)
+++ pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightConfiguration.java
Wed Apr 26 18:05:10 2017
@@ -21,6 +21,7 @@
 
 package org.apache.pdfbox.preflight;
 
+import java.lang.reflect.InvocationTargetException;
 import java.util.Collection;
 import java.util.LinkedHashMap;
 import java.util.Map;
@@ -192,6 +193,22 @@ public class PreflightConfiguration
         {
             throw new ValidationException(processName + " can't be created", e);
         }
+        catch (NoSuchMethodException e)
+        {
+            throw new ValidationException(processName + " can't be created", e);
+        }
+        catch (SecurityException e)
+        {
+            throw new ValidationException(processName + " can't be created", e);
+        }
+        catch (IllegalArgumentException e)
+        {
+            throw new ValidationException(processName + " can't be created", e);
+        }
+        catch (InvocationTargetException e)
+        {
+            throw new ValidationException(processName + " can't be created", e);
+        }
     }
 
     public void replaceProcess(String processName, Class<? extends ValidationProcess>
process)



Mime
View raw message