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

io.mstream.trader.commons.ratpack.exception.ErrorHandler Maven / Gradle / Ivy

The newest version!
package io.mstream.trader.commons.ratpack.exception;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ratpack.error.ServerErrorHandler;
import ratpack.handling.Context;

public class ErrorHandler implements ServerErrorHandler {

    private static final Logger LOGGER =
            LoggerFactory.getLogger(ErrorHandler.class);

    @Override
    public void error(Context context, Throwable throwable) throws Exception {
        LOGGER.error("Service error occurred", throwable);
        context.error(throwable);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy