Minor change to error message. It still throws an exception and its accompanying stack trace, but it's marginally more helpful.

git-svn-id: https://svn2.assembla.com/svn/romraider/trunk@262 38686702-15cf-42e4-a595-3071df8bf5ea
This commit is contained in:
lizzardo 2009-10-31 22:48:18 +00:00
parent 518c403ec0
commit 81b1323bd8
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,7 @@ import static com.romraider.util.SaxParserFactory.getSaxParser;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
@ -54,6 +55,8 @@ public final class EcuDataLoaderImpl implements EcuDataLoader {
} finally {
inputStream.close();
}
} catch (FileNotFoundException fnfe) {
throw new ConfigurationException("The specified ECU definition file " + ecuDefsFile + " does not exist.");
} catch (Exception e) {
throw new ConfigurationException(e);
}
@ -75,6 +78,8 @@ public final class EcuDataLoaderImpl implements EcuDataLoader {
} finally {
inputStream.close();
}
} catch (FileNotFoundException fnfe) {
throw new ConfigurationException("The specified Logger Config file " + loggerConfigFilePath + " does not exist.");
} catch (Exception e) {
throw new ConfigurationException(e);
}