You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/05/30 22:12:59 UTC
svn commit: r1129344 -
/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginConfigurationException.java
Author: simonetripodi
Date: Mon May 30 20:12:59 2011
New Revision: 1129344
URL: http://svn.apache.org/viewvc?rev=1129344&view=rev
Log:
same as for PluginAssertionFailure, no needs to store the cause, reused Exception default behavior
added missing descriptions on javadoc
Modified:
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginConfigurationException.java
Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginConfigurationException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginConfigurationException.java?rev=1129344&r1=1129343&r2=1129344&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginConfigurationException.java (original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginConfigurationException.java Mon May 30 20:12:59 2011
@@ -26,25 +26,25 @@ package org.apache.commons.digester3.plu
*
* @since 1.6
*/
-
public class PluginConfigurationException
extends RuntimeException
{
private static final long serialVersionUID = 1L;
- private Throwable cause = null;
-
/**
+ * Constructs a new exception with the specified cause.
+ *
* @param cause underlying exception that caused this to be thrown
*/
public PluginConfigurationException( Throwable cause )
{
- this( cause.getMessage() );
- this.cause = cause;
+ super( cause );
}
/**
+ * Constructs a new exception with the specified detail message.
+ *
* @param msg describes the reason this exception is being thrown.
*/
public PluginConfigurationException( String msg )
@@ -53,24 +53,14 @@ public class PluginConfigurationExceptio
}
/**
+ * Constructs a new exception with the specified detail message and cause.
+ *
* @param msg describes the reason this exception is being thrown.
* @param cause underlying exception that caused this to be thrown
*/
public PluginConfigurationException( String msg, Throwable cause )
{
- this( msg );
- this.cause = cause;
- }
-
- /**
- * Return the cause of this exception (if any) as specified in the exception constructor.
- *
- * @since 1.8
- */
- @Override
- public Throwable getCause()
- {
- return cause;
+ super( msg, cause );
}
}