Project

General

Profile

« Previous | Next » 

Revision 6662

Added by Chris Jones over 12 years ago

Catch RuntimeExceptions thrown by Hazelcast as opposed to general Exceptions to we don't catch exceptions we're trying to throw.

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
915 915
      }
916 916
      HazelcastService.getInstance().getSystemMetadataMap().unlock(pid);
917 917

  
918
    } catch (Exception e) {
918
    } catch (RuntimeException e) {
919 919
    	ServiceFailure sf = new ServiceFailure("4872", 
920 920
                "General Exception: Couldn't determine if node is allowed: " + 
921 921
                e.getMessage());

Also available in: Unified diff