io.vertx.up.exception.web._000HttpWebException Maven / Gradle / Ivy
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