activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r825966 - in /activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util: NMSExceptionSupport.cs PrimitiveMapInterceptor.cs
Date Fri, 16 Oct 2009 15:54:30 GMT
Author: tabish
Date: Fri Oct 16 15:54:30 2009
New Revision: 825966

URL: http://svn.apache.org/viewvc?rev=825966&view=rev
Log:
* NMSExceptionSupport.cs:
* PrimitiveMapInterceptor.cs: 

Clean up the NMSExceptionSupport interface to be more NMS consitant.  

Modified:
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/NMSExceptionSupport.cs
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/PrimitiveMapInterceptor.cs

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/NMSExceptionSupport.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/NMSExceptionSupport.cs?rev=825966&r1=825965&r2=825966&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/NMSExceptionSupport.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/NMSExceptionSupport.cs
Fri Oct 16 15:54:30 2009
@@ -17,7 +17,7 @@
 
 using System;
 
-namespace Apache.NMS
+namespace Apache.NMS.Util
 {    
     public sealed class NMSExceptionSupport
     {
@@ -25,19 +25,19 @@
         {            
         }
         
-        public static NMSException create(string message, string errorCode, Exception cause)
+        public static NMSException Create(string message, string errorCode, Exception cause)
         {
             NMSException exception = new NMSException(message, errorCode, cause);
             return exception;
         }
                 
-        public static NMSException create(string message, Exception cause)
+        public static NMSException Create(string message, Exception cause)
         {
             NMSException exception = new NMSException(message, cause);
             return exception;
         }
         
-        public static NMSException create(Exception cause)
+        public static NMSException Create(Exception cause)
         {
             if(cause is NMSException) 
             {
@@ -52,7 +52,7 @@
             return exception;
         }
     
-        public static MessageEOFException createMessageEOFException(Exception cause) 
+        public static MessageEOFException CreateMessageEOFException(Exception cause) 
         {
             string msg = cause.Message;
             if (msg == null || msg.Length == 0) 
@@ -63,7 +63,7 @@
             return exception;
         }
     
-        public static MessageFormatException createMessageFormatException(Exception cause)

+        public static MessageFormatException CreateMessageFormatException(Exception cause)

         {
             string msg = cause.Message;
             if (msg == null || msg.Length == 0) 

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/PrimitiveMapInterceptor.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/PrimitiveMapInterceptor.cs?rev=825966&r1=825965&r2=825966&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/PrimitiveMapInterceptor.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/PrimitiveMapInterceptor.cs
Fri Oct 16 15:54:30 2009
@@ -77,7 +77,7 @@
             }
             catch(Exception ex)
             {
-                throw NMSExceptionSupport.createMessageFormatException(ex);
+                throw NMSExceptionSupport.CreateMessageFormatException(ex);
             }
         }
 
@@ -163,7 +163,7 @@
             }
             catch(FormatException ex)
             {
-                throw NMSExceptionSupport.createMessageFormatException(ex);
+                throw NMSExceptionSupport.CreateMessageFormatException(ex);
             }
         }
 
@@ -193,7 +193,7 @@
             }
             catch(FormatException ex)
             {
-                throw NMSExceptionSupport.createMessageFormatException(ex);
+                throw NMSExceptionSupport.CreateMessageFormatException(ex);
             }
         }
 
@@ -219,7 +219,7 @@
             }
             catch(FormatException ex)
             {
-                throw NMSExceptionSupport.createMessageFormatException(ex);
+                throw NMSExceptionSupport.CreateMessageFormatException(ex);
             }            
         }
 
@@ -249,7 +249,7 @@
             }
             catch(FormatException ex)
             {
-                throw NMSExceptionSupport.createMessageFormatException(ex);
+                throw NMSExceptionSupport.CreateMessageFormatException(ex);
             }
         }
 
@@ -279,7 +279,7 @@
             }
             catch(FormatException ex)
             {
-                throw NMSExceptionSupport.createMessageFormatException(ex);
+                throw NMSExceptionSupport.CreateMessageFormatException(ex);
             }
         }
 
@@ -309,7 +309,7 @@
             }
             catch(FormatException ex)
             {
-                throw NMSExceptionSupport.createMessageFormatException(ex);
+                throw NMSExceptionSupport.CreateMessageFormatException(ex);
             }
         }
 
@@ -339,7 +339,7 @@
             }
             catch(FormatException ex)
             {
-                throw NMSExceptionSupport.createMessageFormatException(ex);
+                throw NMSExceptionSupport.CreateMessageFormatException(ex);
             }
         }
 
@@ -369,7 +369,7 @@
             }
             catch(FormatException ex)
             {
-                throw NMSExceptionSupport.createMessageFormatException(ex);
+                throw NMSExceptionSupport.CreateMessageFormatException(ex);
             }
         }
 



Mime
View raw message