io.vertx.up.uca.web.failure.CommonEndurer Maven / Gradle / Ivy
package io.vertx.up.uca.web.failure;
import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;
/**
* # 「Co」Zero Critical internal failure handler
*
* Common handler to handle failure
*
* @author Lang
*/
public class CommonEndurer implements Handler {
private CommonEndurer() {
}
public static Handler create() {
return new CommonEndurer();
}
@Override
public void handle(final RoutingContext event) {
if (event.failed()) {
/*
* Reply
*/
final Throwable error = event.failure();
error.printStackTrace();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy