continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r354161 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
Date Mon, 05 Dec 2005 20:32:14 GMT
Author: evenisse
Date: Mon Dec  5 12:32:10 2005
New Revision: 354161

URL: http://svn.apache.org/viewcvs?rev=354161&view=rev
Log:
Use NotificationException instead of ContinuumException

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java?rev=354161&r1=354160&r2=354161&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
Mon Dec  5 12:32:10 2005
@@ -194,22 +194,15 @@
         // Generate and send email
         // ----------------------------------------------------------------------
 
-        try
+        if ( source.equals( ContinuumNotificationDispatcher.MESSAGE_ID_BUILD_COMPLETE ) )
         {
-            if ( source.equals( ContinuumNotificationDispatcher.MESSAGE_ID_BUILD_COMPLETE
) )
-            {
-                buildComplete( project, build, buildOutput, source, recipients, configuration
);
-            }
-        }
-        catch ( ContinuumException e )
-        {
-            throw new NotificationException( "Error while notifiying.", e );
+            buildComplete( project, build, buildOutput, source, recipients, configuration
);
         }
     }
 
     private void buildComplete( Project project, BuildResult build, String buildOutput, String
source, Set recipients,
                                 Map configuration )
-        throws ContinuumException
+        throws NotificationException
     {
         // ----------------------------------------------------------------------
         // Check if the mail should be sent at all
@@ -299,7 +292,7 @@
         }
         catch ( Exception e )
         {
-            throw new ContinuumException( "Error while generating mail contents.", e );
+            throw new NotificationException( "Error while generating mail contents.", e );
         }
 
         // ----------------------------------------------------------------------
@@ -430,7 +423,7 @@
     }
 
     private BuildResult getPreviousBuild( Project project, BuildResult currentBuild )
-        throws ContinuumException
+        throws NotificationException
     {
         try
         {



Mime
View raw message