Closed Azquelt closed 2 years ago
Reading over this again, should we allow @APIResponse
to be applied to an ExceptionMapper
class as well as the toResponse
method?
Adding it to the class seems more natural, I assume it was only applied to the method because previously the annotation only targeted methods.
Reading over this again, should we allow @APIResponse to be applied to an ExceptionMapper class as well as the toResponse method?
I think that makes sense.
Updated to test for APIResponse on an ExceptionMapper class.
APIResponse
annotations on the method overrideAPIResponse
annotations on the resource class with the same response code.Fixes #417