]> source.dussan.org Git - archiva.git/commitdiff
fix compilation issue
authorOlivier Lamy <olamy@apache.org>
Sat, 25 Feb 2012 22:11:47 +0000 (22:11 +0000)
committerOlivier Lamy <olamy@apache.org>
Sat, 25 Feb 2012 22:11:47 +0000 (22:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293704 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/RepositorySession.java

index 84ac9fdcdfcf564643cf0a3da46e15c9e94adaed..07be9cc1b303de8d6b1a4b2c0d256315ae276cc6 100644 (file)
@@ -86,7 +86,6 @@ public class RepositorySession
      * exception occurs.
      */
     public void close()
-        throws MetadataRepositoryException
     {
         try
         {
@@ -98,7 +97,7 @@ public class RepositorySession
         catch ( MetadataRepositoryException e )
         {
             // olamy use revert here ?
-            throw e;
+            throw new RuntimeException( e.getMessage(), e );
         }
         finally
         {