![JAR search and dependency download from the Maven repository](/logo.png)
com.datastax.data.exploration.config.GlobalExceptionHandler Maven / Gradle / Ivy
The newest version!
package com.datastax.data.exploration.config;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
/**
* @author charles create on 12/22/17
*/
@ControllerAdvice
public class GlobalExceptionHandler {
private Logger logger = LogManager.getLogger(GlobalExceptionHandler.class);
@ExceptionHandler(Throwable.class)
public void exceptionHandler(Throwable e) throws Throwable {
logger.error(e.getMessage(), e);
throw e;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy