@@ -0,0 +1,680 @@
+package bg.car_wash.exception;%0A%0Aimport org.springframework.http.HttpStatus;%0Aimport org.springframework.web.bind.annotation.ControllerAdvice;%0Aimport org.springframework.web.bind.annotation.ExceptionHandler;%0Aimport org.springframework.web.bind.annotation.ResponseStatus;%0A%0A@ControllerAdvice%0Apublic class GlobalExceptionHandler %7B%0A%0A%09@ExceptionHandler(Exception.class)%0A%09public String handleGlobalException() %7B%0A%0A%09%09//TODO create and return page for all other global exception%0A%09%09return %22%22;%0A%09%7D%0A%0A%09@ResponseStatus(HttpStatus.NOT_FOUND)%0A%09@ExceptionHandler(Exception.class)%0A%09public String handle404() %7B%0A%09%09//TODO create and return 404 page for not found exception%0A%09%09return %22exception/404%22;%0A%09%7D%0A%7D%0A

create global exception handler