leif        02/02/06 00:37:05

  Modified:    src/scratchpad/org/apache/avalon/excalibur/datasource/cluster
                        AbstractDataSourceCluster.java
  Log:
  Improve debug messages
  
  Revision  Changes    Path
  1.2       +4 -3      
jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/datasource/cluster/AbstractDataSourceCluster.java
  
  Index: AbstractDataSourceCluster.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/datasource/cluster/AbstractDataSourceCluster.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractDataSourceCluster.java    4 Feb 2002 03:20:54 -0000       1.1
  +++ AbstractDataSourceCluster.java    6 Feb 2002 08:37:05 -0000       1.2
  @@ -28,7 +28,7 @@
   
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]">Leif Mortenson</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/02/04 03:20:54 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/02/06 08:37:05 $
    * @since 4.1
    */
   public abstract class AbstractDataSourceCluster
  @@ -80,7 +80,7 @@
           if ( ( index < 0 ) || ( index >= m_size ) )
           {
               throw new NoValidConnectionException(
  -                "index must be in the range 0 to " + ( m_size - 1 ) );
  +                "index (" + index + ") must be in the range 0 to " + ( 
m_size - 1 ) );
           }
           return m_dataSources[index].getConnection();
       }
  @@ -115,7 +115,8 @@
           m_size = configuration.getAttributeAsInteger( "size" );
           if (m_size < 1)
           {
  -            throw new ConfigurationException( "Invalid value for size 
attribute." );
  +            throw new ConfigurationException(
  +                "Invalid value (" + m_size + ") for size attribute." );
           }
           
           // Read in the data source names.
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to