io.quarkus.qe.database.mysql.NotFoundExceptionMapper Maven / Gradle / Ivy
package io.quarkus.qe.database.mysql;
import jakarta.ws.rs.NotFoundException;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.ExceptionMapper;
import jakarta.ws.rs.ext.Provider;
// workaround for Quarkus providing its own NotFoundExceptionMapper
// which is more specific than our ApplicationExceptionMapper
@Provider
public class NotFoundExceptionMapper implements ExceptionMapper {
@Override
public Response toResponse(NotFoundException exception) {
return new ApplicationExceptionMapper().toResponse(exception);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy