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

io.vertx.up.exception.web._000HttpWebException 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.ext.web.handler.HttpException;
import io.vertx.up.exception.WebException;

/**
 * @author Lang
 */
public class _000HttpWebException extends WebException {
    private final transient HttpException ex;

    public _000HttpWebException(final Class clazz, final HttpException ex) {
        super(clazz, ex.getStatusCode(), ex.getMessage());
        this.ex = ex;
    }

    @Override
    public HttpStatusCode getStatus() {
        return HttpStatusCode.fromCode(this.ex.getStatusCode());
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy