io.vertx.up.exception.web._415MediaNotSupportException Maven / Gradle / Ivy
package io.vertx.up.exception.web;
import io.vertx.core.http.HttpStatusCode;
import io.vertx.up.exception.WebException;
import io.vertx.up.util.Ut;
import javax.ws.rs.core.MediaType;
import java.util.Set;
public class _415MediaNotSupportException extends WebException {
public _415MediaNotSupportException(final Class> clazz,
final MediaType media,
final Set expected) {
super(clazz, media.toString(), Ut.fromJoin(expected.toArray(new MediaType[]{})));
}
@Override
public int getCode() {
return -60006;
}
@Override
public HttpStatusCode getStatus() {
return HttpStatusCode.UNSUPPORTED_MEDIA_TYPE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy