You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tiles.apache.org by ap...@apache.org on 2007/10/16 21:53:24 UTC
svn commit: r585235 -
/tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/definition/DefinitionsFactoryException.java
Author: apetrelli
Date: Tue Oct 16 12:53:23 2007
New Revision: 585235
URL: http://svn.apache.org/viewvc?rev=585235&view=rev
Log:
TILES-225
Now the DefinitionsFactoryException is a normal implementation of an extended exception.
Modified:
tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/definition/DefinitionsFactoryException.java
Modified: tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/definition/DefinitionsFactoryException.java
URL: http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/definition/DefinitionsFactoryException.java?rev=585235&r1=585234&r2=585235&view=diff
==============================================================================
--- tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/definition/DefinitionsFactoryException.java (original)
+++ tiles/framework/trunk/tiles-core/src/main/java/org/apache/tiles/definition/DefinitionsFactoryException.java Tue Oct 16 12:53:23 2007
@@ -36,7 +36,6 @@
*/
public DefinitionsFactoryException() {
super();
- this.exception = null;
}
/**
@@ -46,7 +45,6 @@
*/
public DefinitionsFactoryException(String message) {
super(message);
- this.exception = null;
}
@@ -60,8 +58,7 @@
* @param e The exception to be wrapped.
*/
public DefinitionsFactoryException(Exception e) {
- super();
- this.exception = e;
+ super(e);
}
@@ -75,49 +72,6 @@
* @param e The exception to be wrapped.
*/
public DefinitionsFactoryException(String message, Exception e) {
- super(message);
- this.exception = e;
+ super(message, e);
}
-
-
- /**
- * Return a detail message for this exception.
- * <p/>
- * <p>If there is a embedded exception, and if the DefinitionsFactoryException
- * has no detail message of its own, this method will return
- * the detail message from the embedded exception.</p>
- *
- * @return The error or warning message.
- */
- public String getMessage() {
- String message = super.getMessage();
-
- if (message == null && exception != null) {
- return exception.getMessage();
- } else {
- return message;
- }
- }
-
-
- /**
- * Return the embedded exception, if any.
- *
- * @return The embedded exception, or <code>null</code> if there is none.
- */
- public Exception getException() {
- return exception;
- }
-
- //////////////////////////////////////////////////////////////////////
- // Internal state.
- //////////////////////////////////////////////////////////////////////
-
-
- /**
- * Any "wrapped" exception will be exposed when this is serialized.
- *
- * @serial
- */
- private Exception exception;
}