Project

General

Profile

« Previous | Next » 

Revision 8321

Added by Jing Tao about 11 years ago

Fixed a catch clause syntax which is only compatible with java 1.7.

View differences:

src/edu/ucsb/nceas/metacat/admin/upgrade/solr/SolrSchemaUpgrader.java
55 55
 *    didn't customize the schema ), we will overwrite the schema.xml and remove the solr-last-proccessed-date file. The removal
56 56
 *    of the solr-last-proccessed-date file will force the metacat-index to rebuild all solr index when the administrator restart
57 57
 *    the tomcat at next time.
58
 * 2. If the hash value of the xisting schema.xml isn't in the list, an exception will be throw.  
58
 * 2. If the hash value of the existing schema.xml isn't in the list, an exception will be throw.  
59 59
 * @author tao
60 60
 *
61 61
 */
src/edu/ucsb/nceas/metacat/admin/upgrade/Upgrade2_2_2.java
47 47
        try {
48 48
            SolrSchemaUpgrader upgrader = new SolrSchemaUpgrader();
49 49
            upgrader.upgrade();
50
        } catch (PropertyNotFoundException | ServiceException | NoSuchAlgorithmException | IOException e) {
50
        } catch (PropertyNotFoundException e) {
51 51
            throw new AdminException(e.getMessage());
52
        } catch (IOException e){
53
            throw new AdminException(e.getMessage());
54
        } catch(NoSuchAlgorithmException  e) {
55
            throw new AdminException(e.getMessage());
56
        } catch (ServiceException  e) {
57
            throw new AdminException(e.getMessage());
52 58
        } catch ( SolrSchemaModificationException e) {
53 59
            throw e;
54 60
        }

Also available in: Unified diff