Project

General

Profile

« Previous | Next » 

Revision 7133

Added by Chris Jones over 12 years ago

Minor logging change in throwing ServiceFailure when Hazelcast throws a RuntimeException.

View differences:

src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java
719 719
        }
720 720
        
721 721
        try {
722
            // get the system metadata first because we need th replica list for auth
722
            // get the system metadata first because we need the replica list for auth
723 723
            systemMetadata = HazelcastService.getInstance().getSystemMetadataMap().get(pid);
724 724

  
725 725
            // if MNs are listed as replicas, allow access
......
779 779
            }
780 780
        
781 781
        } catch (RuntimeException e) {
782
            // convert hazelcast RuntimeException to NotFound
783
            throw new ServiceFailure("1090", "No record found for: " + pid.getValue());
782
            // convert hazelcast RuntimeException to ServiceFailure
783
            throw new ServiceFailure("1090", "Unexpected error getting system metadata for: " + 
784
                pid.getValue());
784 785

  
785 786
        }
786 787

  

Also available in: Unified diff