Search in sources :

Example 1 with io.vertx.up.exception._404ServiceNotFoundException

use of io.vertx.up.exception._404ServiceNotFoundException in project vertx-zero by silentbalanceyh.

the class ServiceJet method reply404Error.

/**
 * Service Not Found ( 404 )
 *
 * @param context
 */
private void reply404Error(final RoutingContext context) {
    final HttpServerRequest request = context.request();
    final WebException exception = new _404ServiceNotFoundException(getClass(), request.uri(), request.method());
    Answer.reply(context, Envelop.failure(exception));
}
Also used : io.vertx.up.exception._404ServiceNotFoundException(io.vertx.up.exception._404ServiceNotFoundException) WebException(io.vertx.up.exception.WebException)

Aggregations

WebException (io.vertx.up.exception.WebException)1 io.vertx.up.exception._404ServiceNotFoundException (io.vertx.up.exception._404ServiceNotFoundException)1