I'd try using ExceptionMapper for your business specific exception.
2011/8/23 etc <ecelino_at_gmail.com>:
> Thanks Petr. I have actually looked into that javadoc but still can not
> figure out how can I preprocess parameters and retrieve their annotations.
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/Invalid-Parameter-Format-tp6698976p6715262.html
> Sent from the Jersey mailing list archive at Nabble.com.
>