Just that it shouldn't happen.  There shouldn't be an exception parsing
XML or Json that we created, because it's not user input.  If such an
exception does occur, it's probably a bug, hence the RuntimeException.

On 2013-08-07 15:58, David Mason wrote:
> In zanata-model/src/main/java/org/zanata/model/tm/TMXMetadataHelper.java:
> 
>> +         }
>> +         Map<String, Object> metadata = jsonMapper.readValue(metadataString, Map.class);
>> +
>> +         List<String> children = getChildrenXml(metadata);
>> +         Builder<Element> result = ImmutableList.builder();
>> +         for (String childXml : children)
>> +         {
>> +            Document doc = new nu.xom.Builder().build(childXml, null);
>> +            Element elem = (Element) doc.getRootElement().copy();
>> +            result.add(elem);
>> +         }
>> +         return result.build();
>> +      }
>> +      catch (Exception e)
>> +      {
>> +         // error parsing XML or json, which "shouldn't happen"
> 
> This leaves me with the strong feeling that there's more going on here
> than is stated. What is the real story here?
> 
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zanata/zanata-server/pull/78/files#r5624148>.
> 


-- 
Sean Flanigan

Senior Software Engineer
Engineering - Internationalisation
Red Hat