parser.setErrorHandler(errorHandler);
selectors = parser.parseSelectors(source);
}
catch (final Exception e) {
LOG.error("Error parsing CSS selectors from '" + toString(source) + "': " + e.getMessage(), e);
selectors = new SelectorListImpl();
}
catch (final Error e) {
// SACParser sometimes throws Error: "Missing return statement in function"
LOG.error("Error parsing CSS selectors from '" + toString(source) + "': " + e.getMessage(), e);
selectors = new SelectorListImpl();
}
return selectors;
}