Hi @SujayCHegde
Due to the changing classes in Conf 8 vs 9, I found that I can implement the following and have it work cross-major:
import javax.ws.rs.ext.ExceptionMapper;
@Priority(5000)
@Provider
public class RestExceptionMapper implements ExceptionMapper<Throwable> {
public Response toResponse(E exception) {
// ...
}
Effectively, if 9.1 introduces its own exception mapper that handles read-only exceptions, can Atlassian make sure that either your or our ExceptionMapper
will be used consistently? I don’t think I particularly care which one, so long as it does not break, because we still do need to ship something like the above for <= 9.0.