Project

General

Profile

« Previous | Next » 

Revision 5888

pass the root exception message up the call chain so that it can effectively be reported as a helpful error message. also, the JUnit test expects the specific error message (SchemaRegistryTest)

View differences:

src/edu/ucsb/nceas/metacat/DBSAXHandler.java
732 732
    public void error(SAXParseException exception) throws SAXException
733 733
    {
734 734
        logMetacat.error("DBSaxHandler.error - " + exception.getMessage());
735
        throw (new SAXException("Error in processing EML.", exception));
735
        throw (new SAXException(exception.getMessage(), exception));
736 736
    }
737 737

  
738 738
    /**
......
741 741
    public void warning(SAXParseException exception) throws SAXException
742 742
    {
743 743
        logMetacat.warn("DBSaxHandler.warning - " + exception.getMessage());
744
        throw (new SAXException("Warning.", exception));
744
        throw (new SAXException(exception.getMessage(), exception));
745 745
    }
746 746

  
747 747
    //

Also available in: Unified diff