All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.up.exception.web._415MediaDeclareException Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package io.vertx.up.exception.web;

import io.vertx.core.http.HttpStatusCode;
import io.vertx.up.exception.WebException;

import javax.ws.rs.core.MediaType;

/**
 * # 「Error」Zero Exception
 *
 * * Category: WebException
 * * Code: -40069
 * * Status: 415
 *
 * @author Lang
 */
public class _415MediaDeclareException extends WebException {
    public _415MediaDeclareException(final Class clazz,
                                     final Class argType, final MediaType type) {
        super(clazz, argType.getName(), type.toString());
    }

    @Override
    public int getCode() {
        return -40069;
    }

    @Override
    public HttpStatusCode getStatus() {
        return HttpStatusCode.UNSUPPORTED_MEDIA_TYPE;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy