You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2010/08/25 22:49:00 UTC

svn commit: r989368 - /maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java

Author: hboutemy
Date: Wed Aug 25 20:48:59 2010
New Revision: 989368

URL: http://svn.apache.org/viewvc?rev=989368&view=rev
Log:
added chained exceptions when re-throwing

Modified:
    maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java

Modified: maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java?rev=989368&r1=989367&r2=989368&view=diff
==============================================================================
--- maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java (original)
+++ maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java Wed Aug 25 20:48:59 2010
@@ -165,7 +165,7 @@ public class DefaultSiteTool
         catch ( InvalidVersionSpecificationException e )
         {
             throw new SiteToolException( "InvalidVersionSpecificationException: The skin version '" + version
-                + "' is not valid: " + e.getMessage() );
+                + "' is not valid: " + e.getMessage(), e );
         }
         catch ( ArtifactResolutionException e )
         {
@@ -173,7 +173,7 @@ public class DefaultSiteTool
         }
         catch ( ArtifactNotFoundException e )
         {
-            throw new SiteToolException( "ArtifactNotFoundException: The skin does not exist: " + e.getMessage() );
+            throw new SiteToolException( "ArtifactNotFoundException: The skin does not exist: " + e.getMessage(), e );
         }
 
         return artifact;
@@ -459,11 +459,11 @@ public class DefaultSiteTool
         catch ( ArtifactResolutionException e )
         {
             throw new SiteToolException( "ArtifactResolutionException: Unable to locate site descriptor: "
-                + e.getMessage() );
+                + e.getMessage(), e );
         }
         catch ( IOException e )
         {
-            throw new SiteToolException( "IOException: Unable to locate site descriptor: " + e.getMessage() );
+            throw new SiteToolException( "IOException: Unable to locate site descriptor: " + e.getMessage(), e );
         }
     }
 
@@ -1402,7 +1402,7 @@ public class DefaultSiteTool
                 catch ( IOException e )
                 {
                     getLogger().error(
-                        "Error encountered when trying to resolve canonical module paths: " + e.getMessage() );
+                        "Error encountered when trying to resolve canonical module paths: " + e.getMessage(), e );
                 }
             }
         }