jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juanpa...@apache.org
Subject svn commit: r1553565 - in /jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki: WikiEngine.java attachment/AttachmentServlet.java providers/CachingAttachmentProvider.java providers/CachingProvider.java
Date Thu, 26 Dec 2013 19:51:57 GMT
Author: juanpablo
Date: Thu Dec 26 19:51:56 2013
New Revision: 1553565

URL: http://svn.apache.org/r1553565
Log:
bunch of stacktraces preserved

Modified:
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/WikiEngine.java
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/attachment/AttachmentServlet.java
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/providers/CachingAttachmentProvider.java
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/providers/CachingProvider.java

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/WikiEngine.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/WikiEngine.java?rev=1553565&r1=1553564&r2=1553565&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/WikiEngine.java (original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/WikiEngine.java Thu Dec 26 19:51:56
2013
@@ -517,8 +517,8 @@ public class WikiEngine
         }
         catch( SecurityException e )
         {
-            log.fatal("Unable to find or create the working directory: "+m_workDir,e);
-            throw new IllegalArgumentException("Unable to find or create the working dir:
"+m_workDir);
+            log.fatal( "Unable to find or create the working directory: "+m_workDir, e );
+            throw new IllegalArgumentException( "Unable to find or create the working dir:
" + m_workDir, e );
         }
 
         log.info("JSPWiki working directory is '"+m_workDir+"'");
@@ -1279,7 +1279,7 @@ public class WikiEngine
         }
         catch( UnsupportedEncodingException e )
         {
-            throw new InternalWikiException("ISO-8859-1 not a supported encoding!?!  Your
platform is borked.");
+            throw new InternalWikiException( "ISO-8859-1 not a supported encoding!?!  Your
platform is borked." );
         }
     }
 

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/attachment/AttachmentServlet.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/attachment/AttachmentServlet.java?rev=1553565&r1=1553564&r2=1553565&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/attachment/AttachmentServlet.java
(original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/attachment/AttachmentServlet.java
Thu Dec 26 19:51:56 2013
@@ -589,7 +589,7 @@ public class AttachmentServlet extends H
             msg = "Upload failure: " + e.getMessage();
             log.warn( msg + " (attachment: " + attName + ")", e );
 
-            throw new IOException( msg );
+            throw new IOException( msg, e );
         }
         finally
         {

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/providers/CachingAttachmentProvider.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/providers/CachingAttachmentProvider.java?rev=1553565&r1=1553564&r2=1553565&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/providers/CachingAttachmentProvider.java
(original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/providers/CachingAttachmentProvider.java
Thu Dec 26 19:51:56 2013
@@ -118,7 +118,7 @@ public class CachingAttachmentProvider
         
         try
         {            
-            Class providerclass = ClassUtil.findClass( "org.apache.wiki.providers", classname);
+            Class<?> providerclass = ClassUtil.findClass( "org.apache.wiki.providers",
classname);
 
             m_provider = (WikiAttachmentProvider)providerclass.newInstance();
 
@@ -128,17 +128,17 @@ public class CachingAttachmentProvider
         catch( ClassNotFoundException e )
         {
             log.error("Unable to locate provider class "+classname,e);
-            throw new IllegalArgumentException("no provider class");
+            throw new IllegalArgumentException("no provider class", e);
         }
         catch( InstantiationException e )
         {
             log.error("Unable to create provider class "+classname,e);
-            throw new IllegalArgumentException("faulty provider class");
+            throw new IllegalArgumentException("faulty provider class", e);
         }
         catch( IllegalAccessException e )
         {
             log.error("Illegal access to provider class "+classname,e);
-            throw new IllegalArgumentException("illegal provider class");
+            throw new IllegalArgumentException("illegal provider class", e);
         }
 
     }

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/providers/CachingProvider.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/providers/CachingProvider.java?rev=1553565&r1=1553564&r2=1553565&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/providers/CachingProvider.java
(original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/providers/CachingProvider.java
Thu Dec 26 19:51:56 2013
@@ -146,17 +146,17 @@ public class CachingProvider
         catch( ClassNotFoundException e )
         {
             log.error("Unable to locate provider class "+classname,e);
-            throw new IllegalArgumentException("no provider class");
+            throw new IllegalArgumentException("no provider class", e);
         }
         catch( InstantiationException e )
         {
             log.error("Unable to create provider class "+classname,e);
-            throw new IllegalArgumentException("faulty provider class");
+            throw new IllegalArgumentException("faulty provider class", e);
         }
         catch( IllegalAccessException e )
         {
             log.error("Illegal access to provider class "+classname,e);
-            throw new IllegalArgumentException("illegal provider class");
+            throw new IllegalArgumentException("illegal provider class", e);
         }
     }
 



Mime
View raw message