You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2007/01/05 03:40:35 UTC

svn commit: r492873 - /webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.java

Author: danj
Date: Thu Jan  4 18:40:34 2007
New Revision: 492873

URL: http://svn.apache.org/viewvc?view=rev&rev=492873
Log:
Replaced hardcoded error message with lookup from Messages.properties. Messages was 
already present, just not being used.

Modified:
    webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.java

Modified: webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.java?view=diff&rev=492873&r1=492872&r2=492873
==============================================================================
--- webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.java (original)
+++ webservices/muse/trunk/modules/muse-wsn-impl/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.java Thu Jan  4 18:40:34 2007
@@ -544,7 +544,10 @@
             QName topic = topicFilter.getTopic();
             
             if (!hasTopic(topic))
-                throw new TopicNotSupportedFault("Topic not found: " + topic);
+            {
+                Object[] filler = { topic };
+                throw new TopicNotSupportedFault(_MESSAGES.get("TopicNotFound", filler));
+            }
         }
         
         WsResource producer = getWsResource();



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org