jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juanpa...@apache.org
Subject svn commit: r1547215 - in /jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki: api/exceptions/PluginException.java plugin/InitializablePlugin.java plugin/PluginException.java plugin/WikiPlugin.java
Date Mon, 02 Dec 2013 22:20:26 GMT
Author: juanpablo
Date: Mon Dec  2 22:20:26 2013
New Revision: 1547215

URL: http://svn.apache.org/r1547215
Log:
 * (re)moved o.a.w.plugin.PluginException to o.a.w.api.exceptions.PluginException
 

Removed:
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/plugin/PluginException.java
Modified:
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/api/exceptions/PluginException.java
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/plugin/InitializablePlugin.java
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/plugin/WikiPlugin.java

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/api/exceptions/PluginException.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/api/exceptions/PluginException.java?rev=1547215&r1=1547214&r2=1547215&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/api/exceptions/PluginException.java
(original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/api/exceptions/PluginException.java
Mon Dec  2 22:20:26 2013
@@ -20,12 +20,10 @@ package org.apache.wiki.api.exceptions;
 
 
 /**
- *  Provides a generic PluginException.  This is the kind of
- *  an exception that the plugins should throw.
+ *  Provides a generic PluginException.  This is the kind of an exception that the plugins
should throw.
  */
-public class PluginException
-    extends WikiException
-{
+public class PluginException  extends WikiException {
+	
     private static final long serialVersionUID = -289900047240960332L;
 
     private final Throwable m_throwable;
@@ -35,8 +33,7 @@ public class PluginException
      *  
      *  @param message {@inheritDoc}
      */
-    public PluginException( String message )
-    {
+    public PluginException( String message ) {
         super( message );
         m_throwable = null;
     }
@@ -47,8 +44,7 @@ public class PluginException
      *  @param message {@inheritDoc}
      *  @param original The original exception.
      */
-    public PluginException( String message, Throwable original )
-    {
+    public PluginException( String message, Throwable original ) {
         super( message, original );
         m_throwable = original;
     }
@@ -58,8 +54,8 @@ public class PluginException
      *  
      *  @return The original exception.
      */
-    public Throwable getRootThrowable()
-    {
+    public Throwable getRootThrowable() {
         return m_throwable;
     }
+    
 }

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/plugin/InitializablePlugin.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/plugin/InitializablePlugin.java?rev=1547215&r1=1547214&r2=1547215&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/plugin/InitializablePlugin.java
(original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/plugin/InitializablePlugin.java
Mon Dec  2 22:20:26 2013
@@ -19,6 +19,7 @@
 package org.apache.wiki.plugin;
 
 import org.apache.wiki.WikiEngine;
+import org.apache.wiki.api.exceptions.PluginException;
 
 /**
  *  If a plugin defines this interface, it is called exactly once

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/plugin/WikiPlugin.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/plugin/WikiPlugin.java?rev=1547215&r1=1547214&r2=1547215&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/plugin/WikiPlugin.java (original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/plugin/WikiPlugin.java Mon Dec
 2 22:20:26 2013
@@ -21,6 +21,7 @@ package org.apache.wiki.plugin;
 import java.util.Map;
 
 import org.apache.wiki.WikiContext;
+import org.apache.wiki.api.exceptions.PluginException;
 
 /**
  *  Defines an interface for plugins.  Any instance of a wiki plugin
@@ -59,6 +60,5 @@ public interface WikiPlugin extends org.
      *  @throws PluginException In case anything goes wrong.
      */
 
-    String execute( WikiContext context, Map<String, String> params )
-        throws PluginException;
+    String execute( WikiContext context, Map<String, String> params ) throws PluginException;
 }



Mime
View raw message