18 lines
741 B
Java
18 lines
741 B
Java
//package gr.cite.intelcomp.stiviewer.web.controllers.error;
|
|
//
|
|
//import gr.cite.tools.exception.MyValidationException;
|
|
//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;
|
|
//
|
|
//@ControllerAdvice
|
|
//public class GenericErrorHandler {
|
|
//
|
|
// @ExceptionHandler(MyValidationException.class)
|
|
// public ResponseEntity<MyValidationException> handleValidationException(MyValidationException e, WebRequest webRequest) {
|
|
// return ResponseEntity.status(HttpStatus.NOT_ACCEPTABLE).body(e);
|
|
// }
|
|
//}
|