How can we implement a custom exception mapper in the Javalin frame work? The main issue I am having with the default one is that it includes a type field in its json responses that identifies it as a javalin exception. I don't wish to expose this information. It looks as follows:
{
"title": "Internal server error.",
"status": 500,
"type": "https://javalin.io/documentation#error-responses",
.....
}
The HttpResponseExceptionMapper
doesn't seem to be an interface or anything that can be overridden. So I am at a loss, does anyone have any ideas?