You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@excalibur.apache.org by le...@apache.org on 2005/04/01 04:47:30 UTC
svn commit: r159655 -
excalibur/trunk/containerkit/instrument/mgr-impl/src/java/org/apache/excalibur/instrument/manager/impl/AbstractInstrumentSample.java
Author: leif
Date: Thu Mar 31 18:47:28 2005
New Revision: 159655
URL: http://svn.apache.org/viewcvs?view=rev&rev=159655
Log:
Give a more useful error when there is a problem parsing the state file.
Modified:
excalibur/trunk/containerkit/instrument/mgr-impl/src/java/org/apache/excalibur/instrument/manager/impl/AbstractInstrumentSample.java
Modified: excalibur/trunk/containerkit/instrument/mgr-impl/src/java/org/apache/excalibur/instrument/manager/impl/AbstractInstrumentSample.java
URL: http://svn.apache.org/viewcvs/excalibur/trunk/containerkit/instrument/mgr-impl/src/java/org/apache/excalibur/instrument/manager/impl/AbstractInstrumentSample.java?view=diff&r1=159654&r2=159655
==============================================================================
--- excalibur/trunk/containerkit/instrument/mgr-impl/src/java/org/apache/excalibur/instrument/manager/impl/AbstractInstrumentSample.java (original)
+++ excalibur/trunk/containerkit/instrument/mgr-impl/src/java/org/apache/excalibur/instrument/manager/impl/AbstractInstrumentSample.java Thu Mar 31 18:47:28 2005
@@ -679,15 +679,18 @@
for( int i = 0; i < sampleValues.length; i++ )
{
+ String token = st.nextToken();
try
{
- sampleValues[ i ] = Integer.parseInt( st.nextToken() );
+ sampleValues[ i ] = Integer.parseInt( token );
}
catch( NumberFormatException e )
{
throw new ConfigurationException( "The compact sample data could not be " +
- "loaded, because of a number format problem, for InstrumentSample: " +
- m_name );
+ "loaded, because of a number format " +
+ "problem '" + token + "', " +
+ "for InstrumentSample: " +
+ m_name, history );
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: scm-unsubscribe@excalibur.apache.org
For additional commands, e-mail: scm-help@excalibur.apache.org