示例#1
0
文件: ZGrant.java 项目: huu0510/z-pec
 public static GranteeType fromString(String s) throws ServiceException {
   try {
     return GranteeType.valueOf(s);
   } catch (IllegalArgumentException e) {
     throw ZClientException.CLIENT_ERROR(
         "invalid grantee: " + s + ", valid values: " + Arrays.asList(GranteeType.values()), e);
   }
 }