Project

General

Profile

« Previous | Next » 

Revision 7852

Added by Jing Tao almost 11 years ago

It will throw an exception if the subprocessor can't handle the document.

View differences:

metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/SolrIndex.java
210 210
                                // referenced by the resource map.
211 211
                                Document docObject = generateXmlDocument(dataStream);
212 212
                                if (docObject == null) {
213
                                    log.error("Could not load OBJECT for ID " + id );
213
                                    throw new Exception("Could not load OBJECT for ID " + id );
214 214
                                } else {
215 215
                                    docs = subprocessor.processDocument(id, docs, docObject);
216 216
                                }
217 217
                            } catch (Exception e) {
218 218
                                log.error(e.getStackTrace().toString());
219
                                throw new SolrServerException(e.getMessage());
219 220
                            }
220 221
                        }
221 222
                    }

Also available in: Unified diff