nicko       2004/06/06 18:02:39

  Modified:    src/Plugin PluginCollection.cs
               src/Core LevelCollection.cs
               src/Appender AppenderCollection.cs
  Log:
  Updated to use SystemInfo.CreateArgumentOutOfRangeException
  
  Revision  Changes    Path
  1.6       +1 -1      logging-log4net/src/Plugin/PluginCollection.cs
  
  Index: PluginCollection.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/Plugin/PluginCollection.cs,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PluginCollection.cs       1 Jun 2004 17:58:00 -0000       1.5
  +++ PluginCollection.cs       7 Jun 2004 01:02:39 -0000       1.6
  @@ -587,7 +587,7 @@
                        int max = (allowEqualEnd) ? (m_count) : (m_count-1);
                        if (i < 0 || i > max)
                        {
  -                             throw new 
System.ArgumentOutOfRangeException("i", (object)i, "Index was out of range. 
Must be non-negative and less than the size of the collection. [" + (object)i + 
"] Specified argument was out of the range of valid values.");
  +                             throw 
log4net.Util.SystemInfo.CreateArgumentOutOfRangeException("i", (object)i, 
"Index was out of range. Must be non-negative and less than the size of the 
collection. [" + (object)i + "] Specified argument was out of the range of 
valid values.");
                        }
                }
   
  
  
  
  1.6       +1 -1      logging-log4net/src/Core/LevelCollection.cs
  
  Index: LevelCollection.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/Core/LevelCollection.cs,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- LevelCollection.cs        1 Jun 2004 18:26:22 -0000       1.5
  +++ LevelCollection.cs        7 Jun 2004 01:02:39 -0000       1.6
  @@ -573,7 +573,7 @@
                        int max = (allowEqualEnd) ? (m_count) : (m_count-1);
                        if (i < 0 || i > max)
                        {
  -                             throw new 
System.ArgumentOutOfRangeException("i", (object)i, "Index was out of range. 
Must be non-negative and less than the size of the collection. [" + (object)i + 
"] Specified argument was out of the range of valid values.");
  +                             throw 
log4net.Util.SystemInfo.CreateArgumentOutOfRangeException("i", (object)i, 
"Index was out of range. Must be non-negative and less than the size of the 
collection. [" + (object)i + "] Specified argument was out of the range of 
valid values.");
                        }
                }
   
  
  
  
  1.6       +1 -1      logging-log4net/src/Appender/AppenderCollection.cs
  
  Index: AppenderCollection.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/Appender/AppenderCollection.cs,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AppenderCollection.cs     1 Jun 2004 18:29:03 -0000       1.5
  +++ AppenderCollection.cs     7 Jun 2004 01:02:39 -0000       1.6
  @@ -582,7 +582,7 @@
                        int max = (allowEqualEnd) ? (m_count) : (m_count-1);
                        if (i < 0 || i > max)
                        {
  -                             throw new 
System.ArgumentOutOfRangeException("i", (object)i, "Index was out of range. 
Must be non-negative and less than the size of the collection. [" + (object)i + 
"] Specified argument was out of the range of valid values.");
  +                             throw 
log4net.Util.SystemInfo.CreateArgumentOutOfRangeException("i", (object)i, 
"Index was out of range. Must be non-negative and less than the size of the 
collection. [" + (object)i + "] Specified argument was out of the range of 
valid values.");
                        }
                }
   
  
  
  

Reply via email to