Project

General

Profile

« Previous | Next » 

Revision 9360

Added by Jing Tao about 9 years ago

Modify the text of an exception.

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
198 198
              D1NodeVersionChecker checker = new D1NodeVersionChecker(systemMetadata.getAuthoritativeMemberNode());
199 199
              String version = checker.getVersion("MNStorage");
200 200
              if(version == null) {
201
                  throw new ServiceFailure("4882", "Couldn't determine the version of the MNStorge for the "+pid.getValue());
201
                  throw new ServiceFailure("4882", "Couldn't determine the authoritative member node storage version for the pid "+pid.getValue());
202 202
              } else if (version.equalsIgnoreCase(D1NodeVersionChecker.V2)) {
203 203
                  //we don't apply this method to an object whose authoritative node is v2
204 204
                  throw new NotAuthorized("4881", V2V1MISSMATCH);
......
598 598
          D1NodeVersionChecker checker = new D1NodeVersionChecker(sysMeta.getAuthoritativeMemberNode());
599 599
          String version = checker.getVersion("MNStorage");
600 600
          if(version == null) {
601
              throw new ServiceFailure("4972", "Couldn't determine the version of the MNStorge for the "+pid.getValue());
601
              throw new ServiceFailure("4972", "Couldn't determine the authoritative member node storage version for the pid "+pid.getValue());
602 602
          } else if (version.equalsIgnoreCase(D1NodeVersionChecker.V2)) {
603 603
              //we don't apply this method to an object whose authoritative node is v2
604 604
              throw new NotAuthorized("4970", V2V1MISSMATCH);
......
737 737
	              D1NodeVersionChecker checker = new D1NodeVersionChecker(systemMetadata.getAuthoritativeMemberNode());
738 738
	              String version = checker.getVersion("MNStorage");
739 739
	              if(version == null) {
740
	                  throw new ServiceFailure("4941", "Couldn't determine the version of the MNStorge for the "+pid.getValue());
740
	                  throw new ServiceFailure("4941", "Couldn't determine the authoritative member node storage version for the pid "+pid.getValue());
741 741
	              } else if (version.equalsIgnoreCase(D1NodeVersionChecker.V2)) {
742 742
	                  //we don't apply this method to an object whose authoritative node is v2
743 743
	                  throw new NotAuthorized("4945", V2V1MISSMATCH);
......
1602 1602
              D1NodeVersionChecker checker = new D1NodeVersionChecker(systemMetadata.getAuthoritativeMemberNode());
1603 1603
              String version = checker.getVersion("MNStorage");
1604 1604
              if(version == null) {
1605
                  throw new ServiceFailure("4490", "Couldn't determine the version of the MNStorge for the "+pid.getValue());
1605
                  throw new ServiceFailure("4490", "Couldn't determine the authoritative member node storage version for the pid "+pid.getValue());
1606 1606
              } else if (version.equalsIgnoreCase(D1NodeVersionChecker.V2)) {
1607 1607
                  //we don't apply this method to an object whose authoritative node is v2
1608 1608
                  throw new NotAuthorized("4440", V2V1MISSMATCH);
......
1945 1945
              D1NodeVersionChecker checker = new D1NodeVersionChecker(systemMetadata.getAuthoritativeMemberNode());
1946 1946
              String version = checker.getVersion("MNStorage");
1947 1947
              if(version == null) {
1948
                  throw new ServiceFailure("4430", "Couldn't determine the version of the MNStorge for the "+pid.getValue());
1948
                  throw new ServiceFailure("4430", "Couldn't determine the authoritative member node storage version for the pid "+pid.getValue());
1949 1949
              } else if (version.equalsIgnoreCase(D1NodeVersionChecker.V2)) {
1950 1950
                  //we don't apply this method to an object whose authoritative node is v2
1951 1951
                  throw new NotAuthorized("4420", V2V1MISSMATCH);
src/edu/ucsb/nceas/metacat/dataone/v1/CNodeService.java
646 646
        D1NodeVersionChecker checker = new D1NodeVersionChecker(v2Sysmeta.getAuthoritativeMemberNode());
647 647
        String version = checker.getVersion("MNStorage");
648 648
        if(version == null) {
649
            throw new ServiceFailure("4862", "Couldn't determine the authoritative member node version of the MNStorge for the "+pid.getValue());
649
            throw new ServiceFailure("4862", "Couldn't determine the authoritative member node storage version for the pid "+pid.getValue());
650 650
        } else if (version.equalsIgnoreCase(D1NodeVersionChecker.V2)) {
651 651
            //we don't apply this method to an object whose authoritative node is v2
652 652
            throw new NotAuthorized("4861", edu.ucsb.nceas.metacat.dataone.CNodeService.V2V1MISSMATCH);

Also available in: Unified diff