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

io.vertx.up.uca.web.failure.CommonEndurer Maven / Gradle / Ivy

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

import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;

/**
 * Common handler to handle failure
 */
public class CommonEndurer implements Handler {

    public static Handler create() {
        return new CommonEndurer();
    }

    private CommonEndurer() {
    }

    @Override
    public void handle(final RoutingContext event) {
        if (event.failed()) {
            event.failure().printStackTrace();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy