![JAR search and dependency download from the Maven repository](/logo.png)
org.bidib.wizard.server.error.RestResponseEntityExceptionHandler Maven / Gradle / Ivy
package org.bidib.wizard.server.error;
import org.bidib.wizard.common.exception.ConnectionException;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;
@ControllerAdvice
public class RestResponseEntityExceptionHandler extends ResponseEntityExceptionHandler {
public RestResponseEntityExceptionHandler() {
super();
}
// 404
@ExceptionHandler(value = { ConnectionException.class })
protected ResponseEntity
© 2015 - 2025 Weber Informatics LLC | Privacy Policy