Esempio n. 1
0
 public static TargetType fromCode(String s) throws ServiceException {
   try {
     return TargetType.valueOf(s);
   } catch (IllegalArgumentException e) {
     throw ServiceException.INVALID_REQUEST("unknown target type: " + s, e);
   }
 }