Clean up error handling to make things slightly friendlier on an initial install.
[cfb.git] / prod / net / jaekl / cfb / analyze / MessageMap.java
index f4936b004c1b7617a7a52d604b7de6fe7867118f..635e79df21c86b2e546e3ddf36869c2b0a426467 100644 (file)
@@ -94,7 +94,7 @@ public class MessageMap {
        }
 
        // Load the list of bug patterns and categories from the FindBugs messages.xml file.
-       public void load(File findBugsDir, Locale locale) throws FileNotFoundException, IOException, SAXException
+       public void load(File findBugsDir, Locale locale) throws FBMsgFileNotFoundException, IOException, SAXException
        {
                m_findBugsDir = findBugsDir;
                
@@ -108,7 +108,7 @@ public class MessageMap {
                }
                
                if (! msgXml.canRead()) {
-                       throw new FileNotFoundException(msgXml.getAbsolutePath());
+                       throw new FBMsgFileNotFoundException(msgXml.getAbsolutePath());
                }
                
                parse(new InputSource(new FileInputStream(msgXml)));