Skip to content
Snippets Groups Projects

Draft: [SOY] Update jdk

Closed OURY Sarah requested to merge update_jdk into develop
6 files
+ 39
42
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -26,11 +26,7 @@ public class ExceptionHandler {
* @return l'objet erreur
*/
private static ErreurRest writeErrorResponse(Exception ex, HttpStatus status) {
return ErreurRest.builder()
.status(status.value())
.code(status.name())
.timestamp(LocalDateTime.now())
.message(ex.getLocalizedMessage()).build();
return new ErreurRest(status.name(), ex.getLocalizedMessage(), status.value(), LocalDateTime.now());
}
@org.springframework.web.bind.annotation.ExceptionHandler(value = {CalculImpactException.class})
Loading