/** * Sets the class type that is being mapped. * Also initializes the mapping between column names and bean fields. */ // The rest of the Javadoc is inherited. @Override public void setType(Class<? extends T> type) throws CsvBadConverterException { this.type = type; loadFieldMap(); try { descriptorMap = loadDescriptorMap(); } catch(IntrospectionException e) { // For the record, especially with respect to code coverage, I have // tried to trigger this exception, and I can't. I have read the // source code for Java 8, and I can find no possible way for // IntrospectionException to be thrown by our code. // -Andrew Jones 31.07.2017 CsvBeanIntrospectionException csve = new CsvBeanIntrospectionException( ResourceBundle.getBundle(ICSVParser.DEFAULT_BUNDLE_NAME, errorLocale).getString("bean.descriptors.uninitialized")); csve.initCause(e); throw csve; } }