Search in sources :

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

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

the class ServiceJet method reply405Error.

/**
 * Method not Allowed ( 405 )
 *
 * @param context
 */
private void reply405Error(final RoutingContext context) {
    final HttpServerRequest request = context.request();
    final WebException exception = new _405MethodForbiddenException(getClass(), request.method(), request.uri());
    Answer.reply(context, Envelop.failure(exception));
}
Also used : WebException(io.vertx.up.exception.WebException) io.vertx.up.exception._405MethodForbiddenException(io.vertx.up.exception._405MethodForbiddenException)

Aggregations

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