How can I intercept a parse error in my Jersey REST application? I already registered an ExceptionMapper<Exception> but those don't get caught.
It returns the following to the client
Unexpected character ('y' (code 121)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: org.apache.catalina.connector.CoyoteInputStream@161d5f3; line: 1, column: 92] But I want to send my own Response.