airlift/airlift — pull request #103 by dain (2013-07-18 22:14:33+00:00)
Title: Change JsonMapper to throw typed exception when parse or validation fails

Modified JsonMapper's readFrom() method to throw JsonMapperParsingException and BeanValidationException rather than throwing WebApplicationException. This allows ExceptionMappers to be created to manipulate the response if needed. ExceptionMappers don't work with WebApplicationException. Also, fixed deprecated calls to TypeFactory.type. Also added test for the throwing of the BeanValidationException.