pl.allegro.tech.hermes.management.api.mappers.IOExceptionMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-management Show documentation
Show all versions of hermes-management Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.management.api.mappers;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.ext.Provider;
import java.io.IOException;
import pl.allegro.tech.hermes.api.ErrorCode;
@Provider
public class IOExceptionMapper extends AbstractExceptionMapper {
@Override
Response.Status httpStatus() {
return Response.Status.BAD_REQUEST;
}
@Override
ErrorCode errorCode() {
return ErrorCode.OTHER;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy