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

org.jboss.resteasy.reactive.server.handlers.ExceptionHandler Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package org.jboss.resteasy.reactive.server.handlers;

import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext;
import org.jboss.resteasy.reactive.server.spi.ServerRestHandler;

/**
 * Our job is to turn an exception into a Response instance. This is only present in the abort chain
 */
public class ExceptionHandler implements ServerRestHandler {

    public static final ExceptionHandler INSTANCE = new ExceptionHandler();

    @Override
    public void handle(ResteasyReactiveRequestContext requestContext) throws Exception {
        requestContext.mapExceptionIfPresent();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy