new SuppressionsLoader();
suppressionsLoader.parseInputSource(aSource);
return suppressionsLoader.getFilterChain();
}
catch (final FileNotFoundException e) {
throw new CheckstyleException("unable to find " + aSourceName, e);
}
catch (final ParserConfigurationException e) {
throw new CheckstyleException("unable to parse " + aSourceName, e);
}
catch (final SAXException e) {
throw new CheckstyleException("unable to parse "
+ aSourceName + " - " + e.getMessage(), e);
}
catch (final IOException e) {
throw new CheckstyleException("unable to read " + aSourceName, e);
}
catch (final NumberFormatException e) {
throw new CheckstyleException("number format exception "
+ aSourceName + " - " + e.getMessage(), e);
}
}