RESTEasy - custom ExceptionMapper with error attributes?

23 Views Asked by At

How can I get infos about the error message without "regexing" it?

For example, the following message: "Unable to extract parameter from http request: %s value is '%s'"

I need to keep the request parameter that is in error, but I don't need to show the value.

I tried to implement the "ExceptionMapper" but I cannot get access to the relevant information about what parameter is incorrect. I can only get the string message, and parsing it to extract the parameter feels like it could break anytime in future release if the original text changes.

Any ideas ?

0

There are 0 best solutions below