guardian/frontend — pull request #3414 by janua (2014-03-05 17:49:35+00:00)
Title: Content Api Exception counting

This adds exception counting for `net.liftweb.json.JsonParser.ParseException` and `net.liftweb.json.MappingException` to the calls to the content API for `facia` and `facia-tool`.

I have been seeing these two exceptions come up a good few times in the log. Even before we bumped the version to `2.9`.

Another problem we are seeing is that things like `fields` of an `ItemResponse` which comes back from the content api client is turning out empty (along with `tags` and `elements`).
After pressing this, facia will try to get things like `headline` which doesn't exist, and throw an ` NoSuchElementException` exception.
Instead of pressing it in a bad state, this method will throw if it can't get the fields for any reason, and interrupt the press job.